summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInFindPath.js
blob: 5495791b9736940d17a52d3133c3a2213069c4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (!('oomTest' in this))
    quit();

var o = { w: { x: { y: { z: {} } } } };
oomTest(() => findPath(o, o.w.x.y.z));

var a = [ , o ];
oomTest(() => findPath(a, o));

function C() {}
C.prototype.obj = {};
var c = new C;

oomTest(() => findPath(c, c.obj));

function f(x) { return function g(y) { return x+y; }; }
var o = {}
var gc = f(o);
oomTest(() => findPath(gc, o));