summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Environment-Function-prototype.js
blob: 9ba64a26cfb457d57eccc2da46ba4d127ca98cbd (plain)
1
2
3
4
5
6
7
// Don't crash when getting the Debugger.Environment of a frame inside
// Function.prototype.

var g = newGlobal();
var dbg = new Debugger(g);
dbg.onEnterFrame = function (frame) { frame.environment; };
g.Function.prototype();