diff options
Diffstat (limited to 'js/src/jit-test/tests/debug/Environment-Function-prototype.js')
-rw-r--r-- | js/src/jit-test/tests/debug/Environment-Function-prototype.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/Environment-Function-prototype.js b/js/src/jit-test/tests/debug/Environment-Function-prototype.js new file mode 100644 index 0000000000..97e54f62fc --- /dev/null +++ b/js/src/jit-test/tests/debug/Environment-Function-prototype.js @@ -0,0 +1,7 @@ +// Don't crash when getting the Debugger.Environment of a frame inside +// Function.prototype. + +var g = newGlobal({newCompartment: true}); +var dbg = new Debugger(g); +dbg.onEnterFrame = function (frame) { frame.environment; }; +g.Function.prototype(); |