haikuwebkit/LayoutTests/js/script-tests/regexp-divequal.js

8 lines
251 B
JavaScript

description('Test JS parser handling of regex literals starting with /=');
shouldBe("/=/.toString()", "'/=/'");
shouldBeFalse("/=/.test('')");
shouldBeTrue("/=/.test('=')");
shouldBe("'='.match(/=/)", "['=']");
shouldBe("'='.match(/\\=/)", "['=']");