1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/debug/Script-02.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,7 @@ 1.4 +// |jit-test| debug 1.5 +// Debugger.Script throws when applied as a constructor. 1.6 + 1.7 +load(libdir + 'asserts.js'); 1.8 + 1.9 +assertThrowsInstanceOf(function() { Debugger.Script(); }, TypeError); 1.10 +assertThrowsInstanceOf(function() { new Debugger.Script(); }, TypeError);