From ac7c5008ad3d107c0b647efa33783393a48c9ac2 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Wed, 22 May 2019 18:23:35 -0400 Subject: [PATCH] Improve tests description Fix #2127 The new description reflects better the actual expected behavior --- ...rproperty-1.case => eval-contains-superproperty-1.case} | 7 +------ ...rproperty-2.case => eval-contains-superproperty-2.case} | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) rename src/class-elements/{eval-err-contains-superproperty-1.case => eval-contains-superproperty-1.case} (88%) rename src/class-elements/{eval-err-contains-superproperty-2.case => eval-contains-superproperty-2.case} (85%) diff --git a/src/class-elements/eval-err-contains-superproperty-1.case b/src/class-elements/eval-contains-superproperty-1.case similarity index 88% rename from src/class-elements/eval-err-contains-superproperty-1.case rename to src/class-elements/eval-contains-superproperty-1.case index 564ad5342f..d48cb06b70 100644 --- a/src/class-elements/eval-err-contains-superproperty-1.case +++ b/src/class-elements/eval-contains-superproperty-1.case @@ -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 diff --git a/src/class-elements/eval-err-contains-superproperty-2.case b/src/class-elements/eval-contains-superproperty-2.case similarity index 85% rename from src/class-elements/eval-err-contains-superproperty-2.case rename to src/class-elements/eval-contains-superproperty-2.case index dc8adbcdef..90de48b115 100644 --- a/src/class-elements/eval-err-contains-superproperty-2.case +++ b/src/class-elements/eval-contains-superproperty-2.case @@ -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