aboutsummaryrefslogtreecommitdiffstats
path: root/src/accessor-names/literal-string-single-quote.case
blob: c473f4e6c29f1246b44235efae25d8627a2757f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 (string literal using single quotes)
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).
---*/

//- declareWith
'singleQuote'
//- referenceWith
'singleQuote'