Debian Codegraph @

js/src/jit-test/tests/auto-regress/bug700295.js

raw
1 // Binary: cache/js-dbg-64-1210706b4576-linux
2 // Flags:
3 //
4 load(libdir + "immutable-prototype.js");
5
6 if (globalPrototypeChainIsMutable()) {
7 this.__proto__ = null;
8 Object.prototype.__proto__ = this;
9 }
10
11 function exploreProperties(obj) {
12 var props = [];
13 for (var o = obj; o; o = Object.getPrototypeOf(o)) {
14 props = props.concat(Object.getOwnPropertyNames(o));
15 }
16 for (var i = 0; i < props.length; ++i) {
17 var p = props[i];
18 var v = obj[p];
19 }
20 }
21 var c = [{}];
22 exploreProperties(c);