diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1483182.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug1483182.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1483182.js b/js/src/jit-test/tests/basic/bug1483182.js new file mode 100644 index 0000000000..75e7f2e873 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug1483182.js @@ -0,0 +1,15 @@ +var lfLogBuffer = ` + function testOuterForInVar() { + return eval("for (var x in {}); (function() { return delete x; })"); + } + testOuterForInVar(); +`; +loadFile(lfLogBuffer); +loadFile(lfLogBuffer); +function loadFile(lfVarx) { + try { + oomTest(function() { + eval(lfVarx); + }); + } catch (lfVare) {} +} |