summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug705423.js
blob: 4ce993c20393664accc4b614d50c173891bfd36b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
gczeal(1);

var g = newGlobal();

g.eval("\
var f = function(x) { \
    arg = arguments; \
    fun = function() { return x }; \
} \
");

g.f(3);
g.f = null;
assertEq(g.fun(), 3);
assertEq(g.arg[0], 3);
gc();
g.arg[0] = 9;
assertEq(g.fun(), 9);
assertEq(g.arg[0], 9);