diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/shape-checks.js')
-rw-r--r-- | js/src/jit-test/tests/basic/shape-checks.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/shape-checks.js b/js/src/jit-test/tests/basic/shape-checks.js new file mode 100644 index 0000000000..ba193a9cc2 --- /dev/null +++ b/js/src/jit-test/tests/basic/shape-checks.js @@ -0,0 +1,8 @@ +enableShapeConsistencyChecks(); +var o = {}; +for (var i = 0; i < 50; i++) { + o["x" + i] = i; +} +for (var i = 0; i < 50; i += 2) { + delete o["x" + i]; +} |