diff options
Diffstat (limited to 'js/src/jit-test/tests/debug/Environment-module-tla-env.js')
-rw-r--r-- | js/src/jit-test/tests/debug/Environment-module-tla-env.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/Environment-module-tla-env.js b/js/src/jit-test/tests/debug/Environment-module-tla-env.js new file mode 100644 index 0000000000..f75829d446 --- /dev/null +++ b/js/src/jit-test/tests/debug/Environment-module-tla-env.js @@ -0,0 +1,16 @@ +// Taking frame snapshot after await should not crash. + +var g = newGlobal({newCompartment: true}); +var dbg = Debugger(g); +dbg.onDebuggerStatement = function (frame) { + // Create DebugEnvironmentProxy. + frame.environment; +}; +const m = g.parseModule(` + var x = 0; + debugger; + await 10; + debugger; +`); +moduleLink(m); +moduleEvaluate(m); |