diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/arrays/defineProperty-redundant.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arrays/defineProperty-redundant.js b/js/src/jit-test/tests/arrays/defineProperty-redundant.js new file mode 100644 index 0000000000..7e46ffc08a --- /dev/null +++ b/js/src/jit-test/tests/arrays/defineProperty-redundant.js @@ -0,0 +1,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}); |