summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/latin1/eval.js
blob: 8b13018d07b097dad10f50ea4bbb15359a23da2b (plain)
1
2
3
4
5
6
7
8
9
10
function f(s) {
    var x = 3, y = 5;
    var z = eval(s);
    assertEq(z, 8);
}
var s = "x + y";
f(s); // Latin1
f(s);
f("x + y;/*\u1200*/"); // TwoByte
f("x + y;/*\u1200*/");