summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug870328.js
blob: f5f0b1e9d5acf048c3af8c8edf2b325a3912552d (plain)
1
2
3
4
5
6
7
var g = newGlobal("same-compartment");
try {
    evalcx("'use strict'; (function() { x = 33; })()", g);
    assertEq(0, 1);
} catch(e) {
    assertEq(e.toString().includes("variable x"), true);
}