fn-name-lhs-member.js (967B)
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 MemberExpression 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 o = {}; 22 23 o.attr = function() {}; 24 25 verifyProperty(o.attr, "name", { 26 value: "", writable: false, enumerable: false, configurable: true 27 }); 28 29 reportCompare(0, 0);