Improve tests description

Fix #2127

The new description reflects better the actual expected behavior
This commit is contained in:
Leo Balter 2019-05-22 18:23:35 -04:00
parent 1265a60017
commit ac7c5008ad
2 changed files with 2 additions and 12 deletions

View File

@ -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

View File

@ -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