summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug1750935.js
blob: e4f7440848c08ed4000f8fae5a9c1ff68e641a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Parse-time static string lookup.
var s = "\ue531\ue531\ue531";
assertEq(s.codePointAt(0), 0xe531);
assertEq(s.codePointAt(1), 0xe531);
assertEq(s.codePointAt(2), 0xe531);

// Runtime static string lookup.
s = "\ue531\ue531\ue5310n".split(/\d[^]/)[0];
assertEq(s.codePointAt(0), 0xe531);
assertEq(s.codePointAt(1), 0xe531);
assertEq(s.codePointAt(2), 0xe531);