diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/auto-regress/bug658803.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/auto-regress/bug658803.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,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__);