81345200 A |
1 | |
2 | |
3 | var ig = createImpureGetter(null); |
4 | ig.x = 42; |
5 | |
6 | var foo = function(o) { |
7 | return o.x; |
8 | }; |
9 | |
10 | noInline(foo); |
11 | |
12 | for (var i = 0; i < 10000; ++i) |
13 | foo(ig); |
14 | |
15 | setImpureGetterDelegate(ig, {x:"x"}); |
16 | |
17 | if (foo(ig) !== "x") |
18 | throw new Error("Incorrect result!"); |