tor-browser

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

name-name-prop-symbol.js (552B)


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