mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
Improve tests description
Fix #2127 The new description reflects better the actual expected behavior
This commit is contained in:
parent
1265a60017
commit
ac7c5008ad
@ -2,7 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: error if `super.x` in StatementList of eval
|
desc: super.x in StatementList of eval
|
||||||
info: |
|
info: |
|
||||||
Additional Early Error Rules for Eval Inside Initializer
|
Additional Early Error Rules for Eval Inside Initializer
|
||||||
These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.
|
These static semantics are applied by PerformEval when a direct eval call occurs inside a class field initializer.
|
||||||
@ -16,14 +16,9 @@ info: |
|
|||||||
ScriptBody : StatementList
|
ScriptBody : StatementList
|
||||||
|
|
||||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||||
|
|
||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
template: initializer-eval-super-property
|
template: initializer-eval-super-property
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- initializer
|
//- initializer
|
||||||
super.x
|
super.x
|
||||||
//- earlyerror
|
|
||||||
SyntaxError
|
|
||||||
//- executionerror
|
|
||||||
SyntaxError
|
|
@ -2,7 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
desc: error if super['x'] in StatementList of eval
|
desc: super['x'] in StatementList of eval
|
||||||
info: |
|
info: |
|
||||||
The remaining eval rules apply as outside a constructor, inside a method, and inside a function.
|
The remaining eval rules apply as outside a constructor, inside a method, and inside a function.
|
||||||
|
|
||||||
@ -13,14 +13,9 @@ info: |
|
|||||||
ScriptBody : StatementList
|
ScriptBody : StatementList
|
||||||
|
|
||||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||||
|
|
||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
template: initializer-eval-super-property
|
template: initializer-eval-super-property
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- initializer
|
//- initializer
|
||||||
super['x']
|
super['x']
|
||||||
//- earlyerror
|
|
||||||
SyntaxError
|
|
||||||
//- executionerror
|
|
||||||
SyntaxError
|
|
Loading…
x
Reference in New Issue
Block a user