summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1593971.js
blob: 42ffbbd8556888a8133fa0547daf0b1e5b3bc907 (plain)
1
2
3
4
5
6
7
var ta = new Uint32Array(10);

// Shadow the %TypedArray.prototype%.length getter.
Object.defineProperty(ta, "length", {value: 0x1000});

// Call Array.prototype.fill, not %TypedArray.prototype%.fill!
Array.prototype.fill.call(ta, 0);