michael@0: // |jit-test| debug michael@0: // Debugger.Script throws when applied as a constructor. michael@0: michael@0: load(libdir + 'asserts.js'); michael@0: michael@0: assertThrowsInstanceOf(function() { Debugger.Script(); }, TypeError); michael@0: assertThrowsInstanceOf(function() { new Debugger.Script(); }, TypeError);