tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S15.1_A1_T2.js (434B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: The global object does not have a [[Construct]] property
      6 es5id: 15.1_A1_T2
      7 description: >
      8    It is not possible to use the global object as a constructor  with
      9    the new operator
     10 ---*/
     11 
     12 var global = this;
     13 
     14 assert.throws(TypeError, function() {
     15  new global();
     16 });
     17 
     18 reportCompare(0, 0);