blob: be01dcaeb4ee04de5a12ce4a68f26068624cadba [file] [log] [blame]
// |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();