diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/cacheir/bug1423139.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/bug1423139.js b/js/src/jit-test/tests/cacheir/bug1423139.js new file mode 100644 index 0000000000..31ad297a49 --- /dev/null +++ b/js/src/jit-test/tests/cacheir/bug1423139.js @@ -0,0 +1,15 @@ +var c = 0; +for (var i = 0; i < 5; i++) { + try { + Object.defineProperty([], "length", { + configurable: true, + enumerable: true, + writable: true, + value: 0 + }); + } catch (e) { + assertEq(e instanceof TypeError, true); + c++; + } +} +assertEq(c, i); |