summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/reverse-frozen.js
blob: d2f32b78d2f4ceb84ed04a3fbef727f352e298fc (plain)
1
2
3
4
5
6
// |jit-test| error: TypeError

x = [0];
x.length = 9;
Object.freeze(x);
x.reverse();