summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1091757.js
blob: e3c437b6a2cc312bd4f0b3f514882c54f30806ee (plain)
1
2
3
4
5
6
7
8
9
10
11
try {
    (function() {
	let a = 3;
	let XY = XY;
	return function() { return a; };
    })();
    assertEq(0, 1);
} catch(e) {
    assertEq(e instanceof ReferenceError, true);
    assertEq(e.message.includes("XY"), true);
}