tor-browser

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

generator-name-prop-string.js (547B)


      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 functions declared as methods are assigned a `name` property
      7    according to the string value of their property name.
      8 es6id: 14.4.13
      9 includes: [propertyHelper.js]
     10 features: [generators]
     11 ---*/
     12 
     13 var method = { *method() {} }.method;
     14 
     15 verifyProperty(method, 'name', {
     16  value: 'method',
     17  writable: false,
     18  enumerable: false,
     19  configurable: true,
     20 });
     21 
     22 reportCompare(0, 0);