summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Source-introductionScript-04.js
blob: 6f0721b6379861c8678395ac8b556edb53caf538 (plain)
1
2
3
4
5
6
7
8
// Function.prototype's script source should be fully initialized.
var g = newGlobal();
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);

var DOfp = gw.getOwnPropertyDescriptor('Function').value.proto;
// This should not crash.
print(DOfp.script.source.introductionScript);