summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Script-02.js
blob: 071dc465aece1625d85b18ffb290241f73c25f01 (plain)
1
2
3
4
5
6
// Debugger.Script throws when applied as a constructor.

load(libdir + 'asserts.js');

assertThrowsInstanceOf(function() { Debugger.Script(); }, TypeError);
assertThrowsInstanceOf(function() { new Debugger.Script(); }, TypeError);