summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug658803.js
blob: 95b1a5bba7a64a2dddc2785c528593c95ce1a559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Binary: cache/js-dbg-32-33f1ad45ccb8-linux
// Flags: -m -n
//
function f() {
  var N = 624;
  this.init_genrand = function(s) {
    for (z = 1; z < N; z++) {}
  };
}(function() {
  new f;
}());
function g(o) {
  var props = Object.getOwnPropertyNames(o);
  var prop = props[props.length - 1] + "p"
  o[prop] = Number.prototype.__proto__;
}
g(Number.prototype.__proto__);