diff options
Diffstat (limited to 'js/src/jit-test/tests/cacheir/bug1842617.js')
-rw-r--r-- | js/src/jit-test/tests/cacheir/bug1842617.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/bug1842617.js b/js/src/jit-test/tests/cacheir/bug1842617.js new file mode 100644 index 0000000000..1524d5733f --- /dev/null +++ b/js/src/jit-test/tests/cacheir/bug1842617.js @@ -0,0 +1,30 @@ +// |jit-test| --baseline-eager + +function foo(src) { + try { + evaluate(src); + } catch {} + Math = undefined; +} + +foo(``); +foo(``); +foo(`var a = 0;`); +foo(`var b = 0;`); +foo(`var c = 0;`); +foo(`var d = 0;`); +foo(`undef();`); +foo(`{`); +foo(` + gc(); + e = 0; + gc(); +`); +foo(` + var f = 0; + gc(); + delete Math; +`); +foo(` + g = undefined; +`); |