blob: c2beca9f63eab12ec5b1301bed79fd51d34ae1fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
load(libdir + "immutable-prototype.js");
c = Number.prototype;
function f(o) {
if (globalPrototypeChainIsMutable() || o !== Object.prototype)
o.__proto__ = null
for (x in o) {}
}
for (i = 0; i < 9; i++) {
f(c)
if (globalPrototypeChainIsMutable())
Object.prototype.__proto__ = c;
for (x in Object.prototype)
continue;
f(Math.__proto__);
}
|