mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 14:35:30 +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.
|
||||
|
||||
/*---
|
||||
desc: error if `super.x` in StatementList of eval
|
||||
desc: super.x in StatementList of eval
|
||||
info: |
|
||||
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.
|
||||
@ -16,14 +16,9 @@ info: |
|
||||
ScriptBody : StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-property
|
||||
---*/
|
||||
|
||||
//- initializer
|
||||
super.x
|
||||
//- earlyerror
|
||||
SyntaxError
|
||||
//- executionerror
|
||||
SyntaxError
|
@ -2,7 +2,7 @@
|
||||
// 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: |
|
||||
The remaining eval rules apply as outside a constructor, inside a method, and inside a function.
|
||||
|
||||
@ -13,14 +13,9 @@ info: |
|
||||
ScriptBody : StatementList
|
||||
|
||||
It is a Syntax Error if StatementList Contains SuperProperty.
|
||||
|
||||
features: [class, class-fields-public]
|
||||
template: initializer-eval-super-property
|
||||
---*/
|
||||
|
||||
//- initializer
|
||||
super['x']
|
||||
//- earlyerror
|
||||
SyntaxError
|
||||
//- executionerror
|
||||
SyntaxError
|
Loading…
x
Reference in New Issue
Block a user