Debian Codegraph @

js/src/jit-test/tests/ion/result-type-mutated.js

raw
1 // jitcode which uses objects of one type might not be invalidated when that
2 // object changes type, if the object isn't accessed in any way.
3
4 function foo(x) {
5 return x.f;
6 }
7
8 function bar() {
9 with({}){}
10
11 var a = {};
12 var b = { f: a };
13 foo(b);
14 a.__proto__ = null;
15 foo(b);
16 }
17
18 bar();