summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1161968.js
blob: 719d3142445451354a19f9d0acac080b08c775aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This test case is a simplified version of debug/Source-invisible.js.

if (!'gczeal' in this)
    quit();

gczeal(2,21);

var gi = newGlobal();
gi.eval('function f() {}');

var gv = newGlobal();
gv.f = gi.f;
gv.eval('f = clone(f);');

var dbg = new Debugger;