summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/defineProperty-redundant.js
blob: 7e46ffc08a87154cbe0b6f2e5c42afdba2f4f6de (plain)
1
2
3
4
5
6
7
8
9
10
var array = [123];
Object.freeze(array);
Object.defineProperty(array, 0, {});
Object.defineProperty(array, 0, {abc: 1});
Object.defineProperty(array, 0, {value: 123});
Object.defineProperty(array, 0, {writable: false});
Object.defineProperty(array, 0, {enumerable: true});
Object.defineProperty(array, 0, {configurable: false});
Object.defineProperty(array, 0, {value: 123, writable: false,
                                 enumerable: true, configurable: false});