tor-browser

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

fn-name-lhs-cover.js (969B)


      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 esid: sec-assignment-operators-runtime-semantics-evaluation
      6 description: Left-hand side as a CoverParenthesizedExpression
      7 info: |
      8    AssignmentExpression[In, Yield, Await] :
      9        LeftHandSideExpression[?Yield, ?Await] = AssignmentExpression[?In, ?Yield, ?Await]
     10 
     11    1. If LeftHandSideExpression is neither an ObjectLiteral nor an
     12       ArrayLiteral, then
     13       [...]
     14       c. If IsAnonymousFunctionDefinition(AssignmentExpression) and
     15          IsIdentifierRef of LeftHandSideExpression are both true, then
     16          i. Let rval be NamedEvaluation of AssignmentExpression with argument
     17             GetReferencedName(lref).
     18 includes: [propertyHelper.js]
     19 ---*/
     20 
     21 var fn;
     22 
     23 (fn) = function() {};
     24 
     25 verifyProperty(fn, "name", {
     26  value: "", writable: false, enumerable: false, configurable: true
     27 });
     28 
     29 reportCompare(0, 0);