PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
JavaScript | 7 lines | 3 code | 2 blank | 2 comment | 0 complexity | e4e48e963c8767a7f29f76af4291a441 MD5 | raw file
1// |jit-test| debug
2// Debugger.Script throws when applied as a constructor.
3
4load(libdir + 'asserts.js');
5
6assertThrowsInstanceOf(function() { Debugger.Script(); }, TypeError);
7assertThrowsInstanceOf(function() { new Debugger.Script(); }, TypeError);