2017-04-16 23:25:02 +02:00
|
|
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
2015-07-08 22:09:57 +02:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
2019-08-15 16:58:40 +02:00
|
|
|
esid: sec-assignment-operators-runtime-semantics-evaluation
|
2015-07-08 22:09:57 +02:00
|
|
|
description: Left-hand side as a MemberExpression
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2019-08-15 16:58:40 +02:00
|
|
|
AssignmentExpression[In, Yield, Await] :
|
|
|
|
LeftHandSideExpression[?Yield, ?Await] = AssignmentExpression[?In, ?Yield, ?Await]
|
2015-07-08 22:09:57 +02:00
|
|
|
|
|
|
|
1. If LeftHandSideExpression is neither an ObjectLiteral nor an
|
|
|
|
ArrayLiteral, then
|
|
|
|
[...]
|
2019-08-15 16:58:40 +02:00
|
|
|
c. If IsAnonymousFunctionDefinition(AssignmentExpression) and
|
2015-07-08 22:09:57 +02:00
|
|
|
IsIdentifierRef of LeftHandSideExpression are both true, then
|
2019-08-15 16:58:40 +02:00
|
|
|
i. Let rval be NamedEvaluation of AssignmentExpression with argument
|
|
|
|
GetReferencedName(lref).
|
|
|
|
includes: [propertyHelper.js]
|
2015-07-08 22:09:57 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
var o = {};
|
|
|
|
|
|
|
|
o.attr = function() {};
|
|
|
|
|
2019-08-15 16:58:40 +02:00
|
|
|
verifyProperty(o.attr, "name", {
|
|
|
|
value: "", writable: false, enumerable: false, configurable: true
|
|
|
|
});
|