diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1698126.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1698126.js b/js/src/jit-test/tests/warp/bug1698126.js new file mode 100644 index 0000000000..d0576c2487 --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1698126.js @@ -0,0 +1,11 @@ +function bar() { return arguments[0]; } + +function foo() { + var arr = new Float32Array(10); + return bar(arr[0]); +} + +with ({}) {} +for (var i = 0; i < 100; i++) { + assertEq(foo(), 0); +} |