diff options
Diffstat (limited to 'js/src/jit-test/tests/fuses/popped-getiter.js')
-rw-r--r-- | js/src/jit-test/tests/fuses/popped-getiter.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/fuses/popped-getiter.js b/js/src/jit-test/tests/fuses/popped-getiter.js new file mode 100644 index 0000000000..05964585ea --- /dev/null +++ b/js/src/jit-test/tests/fuses/popped-getiter.js @@ -0,0 +1,11 @@ +// This will pop the getiter fuse. +Array.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; + +function f() { + [] = [] +} + +// We should nevertheless be able to pass this loop without crashing. +for (let i = 0; i < 100; i++) { + f(); +} |