tor-browser

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

length.js (627B)


      1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-generatorfunction.length
      5 description: >
      6  This is a data property with a value of 1. This property has the attributes {
      7  [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
      8 includes: [propertyHelper.js]
      9 features: [generators]
     10 ---*/
     11 
     12 var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
     13 
     14 verifyProperty(GeneratorFunction, "length", {
     15  value: 1,
     16  writable: false,
     17  enumerable: false,
     18  configurable: true
     19 });
     20 
     21 reportCompare(0, 0);