summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug913749.js
blob: a952caf1c8f9ca00c4419b79eda5fd83084e4bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
y = new Float32Array(11);
x = [];

Object.defineProperty(x, 18, {
    get: (function() {
        y.length;
    }),
});
this.toSource();

y = undefined;

for (var i = 0; i < 3; i++) {
    try {
	x.toString();
	assertEq(0, 1);
    } catch (e) {
	assertEq(e.message, "y is undefined");
    }
}