summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/regexp/bug1783830.js
blob: cd41be7f66220f422e5edf4c625fb83d55cd89f7 (plain)
1
2
3
4
5
6
7
assertEq(/[^!]/u.exec('\u{1F4A9}')[0], "\u{1F4A9}");
assertEq(/^[^!]/u.exec('\u{1F4A9}')[0], "\u{1F4A9}");
assertEq(/[^!]$/u.exec('\u{1F4A9}')[0], "\u{1F4A9}");
assertEq(/![^!]/u.exec('!\u{1F4A9}')[0], "!\u{1F4A9}");
assertEq(/[^!]!/u.exec('\u{1F4A9}!')[0], "\u{1F4A9}!");
assertEq(/![^!]/ui.exec('!\u{1F4A9}')[0], "!\u{1F4A9}");
assertEq(/[^!]!/ui.exec('\u{1F4A9}!')[0], "\u{1F4A9}!");