tor-browser

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

implicit-constructor.js (381B)


      1 // Copyright (C) 2014 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 14.5
      5 description: >
      6    class implicit constructor
      7 ---*/
      8 class C {}
      9 var c = new C();
     10 assert.sameValue(
     11    Object.getPrototypeOf(c),
     12    C.prototype,
     13    "`Object.getPrototypeOf(c)` returns `C.prototype`"
     14 );
     15 
     16 reportCompare(0, 0);