tor-browser

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

name.js (747B)


      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 es6id: 14.1.19
      6 description: Assignment of function `name` attribute
      7 info: |
      8    FunctionDeclaration :
      9        function BindingIdentifier ( FormalParameters ) { FunctionBody }
     10 
     11    1. Let name be StringValue of BindingIdentifier.
     12    2. Let F be FunctionCreate(Normal, FormalParameters, FunctionBody, scope, strict).
     13    3. Perform MakeConstructor(F).
     14    4. Perform SetFunctionName(F, name).
     15    5. Return F.
     16 includes: [propertyHelper.js]
     17 ---*/
     18 
     19 function func() {}
     20 
     21 verifyProperty(func, "name", {
     22  value: "func",
     23  writable: false,
     24  enumerable: false,
     25  configurable: true,
     26 });
     27 
     28 reportCompare(0, 0);