mirror of
https://github.com/tc39/test262.git
synced 2025-08-21 01:48:30 +02:00
25 lines
574 B
Plaintext
25 lines
574 B
Plaintext
// Copyright (C) 2017 Mike Pennisi. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
desc: Computed values as accessor property names (AssignmentExpression)
|
|
template: default
|
|
info: |
|
|
12.2.6.7 Runtime Semantics: Evaluation
|
|
|
|
[...]
|
|
|
|
ComputedPropertyName : [ AssignmentExpression ]
|
|
|
|
1. Let exprValue be the result of evaluating AssignmentExpression.
|
|
2. Let propName be ? GetValue(exprValue).
|
|
3. Return ? ToPropertyKey(propName).
|
|
---*/
|
|
|
|
//- setup
|
|
var _;
|
|
|
|
//- declareWith
|
|
[_ = 'str' + 'ing']
|
|
//- referenceWith
|
|
'string'
|