summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInFindPath.js
blob: cacf5876992341ece27017d5436959e680c9e640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));