diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug827104.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug827104.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug827104.js b/js/src/jit-test/tests/basic/bug827104.js new file mode 100644 index 000000000..bed6466b4 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug827104.js @@ -0,0 +1,13 @@ +function f() { + var a = []; + for (var i = 0; i < 1000; i++) { + a.x = {} + } + a[i][0] = 0; +} + +var e; +try { + f(); +} catch (error) {e = error;} +assertEq(e.toString(), 'TypeError: a[i] is undefined');
\ No newline at end of file |