tor-browser

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

length-property-descriptor.js (446B)


      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 /*---
      5 description: >
      6    Generator objects should define a `length` property.
      7 includes: [propertyHelper.js]
      8 es6id: 25.2.4
      9 features: [generators]
     10 ---*/
     11 
     12 var g = function*() {};
     13 
     14 verifyProperty(g, "length", {
     15  value: 0,
     16  writable: false,
     17  enumerable: false,
     18  configurable: true,
     19 });
     20 
     21 reportCompare(0, 0);