mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Add cases for default identifier names in accessor-names
This commit is contained in:
parent
0e8050b5fb
commit
39e25a8d06
21
src/accessor-names/literal-string-default-escaped-ext.case
Normal file
21
src/accessor-names/literal-string-default-escaped-ext.case
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// Copyright (C) 2019 Leo Balter. 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 'default' w/ extended escape)
|
||||||
|
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
|
||||||
|
'def\u{61}ult'
|
||||||
|
//- referenceWith
|
||||||
|
'default'
|
21
src/accessor-names/literal-string-default-escaped.case
Normal file
21
src/accessor-names/literal-string-default-escaped.case
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// Copyright (C) 2019 Leo Balter. 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 'default' escaped)
|
||||||
|
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
|
||||||
|
'def\u0061ult'
|
||||||
|
//- referenceWith
|
||||||
|
'default'
|
21
src/accessor-names/literal-string-default.case
Normal file
21
src/accessor-names/literal-string-default.case
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// Copyright (C) 2019 Leo Balter. 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 'default')
|
||||||
|
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
|
||||||
|
'default'
|
||||||
|
//- referenceWith
|
||||||
|
'default'
|
Loading…
x
Reference in New Issue
Block a user