summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/bug566136.js
blob: 2d5f7ffb082e3eeedbc552fa2aa987517c6cff31 (plain)
1
2
3
4
5
6
7
8
9
10
11
load(libdir + "immutable-prototype.js");

Object.prototype.length = 0;
if (globalPrototypeChainIsMutable())
    this.__proto__ = [];

function f() {
    eval('Math');
    length = 2;
}
f();