3 Commits

Author SHA1 Message Date
Valerie R Young
2488cb99b3 classfields tests for eval early errors
# Conflicts:
#	src/class-fields/eval-err-contains-arguments.case
#	src/class-fields/eval-err-contains-supercall-1.case
#	src/class-fields/eval-err-contains-supercall-2.case
#	src/class-fields/eval-err-contains-supercall.case
#	src/class-fields/eval-err-contains-superproperty-1.case
#	src/class-fields/eval-err-contains-superproperty-2.case
2018-08-20 16:38:52 -04:00
André Bargull
5ec3bd7d03 Fix more issues in eval tests for class-fields
Changes:

- Changed eval-err-contains-supercall-1.case to add a property access similar to eval-err-contains-supercall-2.case, without this property access eval-err-contains-supercall-1.case would be identical to eval-err-contains-supercall.case.
- Remove unnecessary "earlyerror" and "executionerror" template arguments when the value is already clear from the context.
- Fixed the description in eval-err-contains-supercall-2.case to refer to the correct early error rule.
- Fixed a copy-paste error in eval-err-contains-superproperty-1.case and eval-err-contains-superproperty-2.case.
- Split initializer-eval-super into initializer-eval-super-call and initializer-eval-super-property, because we actually need to test different behaviour for the super-call compared to the super-property case.
- Split initializer-eval into initializer-eval-arguments and initializer-eval-newtarget, because `arguments` and `new.target` are differently handled in class-fields.
- And fixed other copy-paste errors in the template files.

Fixes #1325
2017-11-01 08:23:43 -07:00
Valerie R Young
f0c2a9b019 classfields tests for eval early errors 2017-10-20 22:06:02 -04:00