blob: be01dcaeb4ee04de5a12ce4a68f26068624cadba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// |jit-test| error: TypeError
var x = {f:20};
function foo() {
for (var i = 0; i < 10; i++)
x.f;
}
foo();
gc();
// a type barrier needs to be generated for the access on x within foo,
// even though its type set is initially empty after the GC.
x = undefined;
foo();
|