tor-browser

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

invoked-as-ctor.js (525B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 19.1.2.1
      5 description: Invoked as a constructor
      6 info: |
      7    ES6 Section 9.3:
      8 
      9    Built-in function objects that are not identified as constructors do not
     10    implement the [[Construct]] internal method unless otherwise specified in
     11    the description of a particular function.
     12 ---*/
     13 
     14 assert.throws(TypeError, function() {
     15  new Object.assign({});
     16 });
     17 
     18 reportCompare(0, 0);