Debian Codegraph @

js/src/jit-test/tests/debug/Script-02.js

raw
1 // Debugger.Script throws when applied as a constructor.
2
3 load(libdir + 'asserts.js');
4
5 assertThrowsInstanceOf(function() { Debugger.Script(); }, TypeError);
6 assertThrowsInstanceOf(function() { new Debugger.Script(); }, TypeError);