summaryrefslogtreecommitdiff
path: root/src/class-fields
Commit message (Collapse)AuthorAgeFilesLines
* Remove irrelevant info from ↵Rick Waldron2018-01-054-10/+2
| | | | src/class-fields/propname-error-static/cls-decl-static-* frontmatter
* Rename negative test "phase" for parsingMike Pennisi2018-01-0520-24/+34
| | | | | | | | | | | | | | Early errors may result from parsing the source text of a test file, but they may also result from parsing some other source text as referenced through the ES2015 module syntax. The latter form of early error is not necessarily detectable by ECMAScript parsers, however. Because of this, the label "early" is not sufficiently precise for all Test262 consumers to correctly interpret all tests. Update the "phase" name of "early" to "parse" for all those negative tests that describe errors resulting from parsing of the file's source text directly. A forthcoming commit will update the remaining tests to use a "phase" name that is more specific to module resolution.
* Restore & update existing static class field cases/templatesRick Waldron2017-12-216-0/+86
|
* Remove static fields testsDaniel Ehrenberg2017-12-2136-853/+9
| | | | | | Static fields were broken up from instance fields and demoted to Stage 2 in the November 2017 TC39 meeting. This patch removes the test262 tests which test static class fields.
* Add features for class public fieldsLeo Balter2017-11-2850-50/+50
|
* Add class-fields-private tags for matches using #Leo Balter2017-11-2826-14/+26
|
* Add more tests for class fieldsLeo Balter2017-11-1566-30/+1200
| | | | | | | | | | | - Add tests for multiple public fields of the same name - Reorganize fields default templates - Add more tests for redeclaration of fields - Remove non used template - Add tests for computed property names in class fields definitions - Minor test fixes Thanks @andresaraujo for helping with the early review
* Fix bugs reported in #1338 (#1339)Leo Balter2017-11-1046-20/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Accessing `ta[0]` throws a TypeError. * Fix array indices starting at 0 and property references * Fix classfields templates for properly checking static propnames. * Generate tests * `assert.equal` is not defined * Add missing includes * Generate tests * typo s/Avalue/42/ * fix whitespace * Add missing var for strict mode * Expand generated class fields tests for forbidden computed property name values Ref https://github.com/tc39/test262/pull/1339#issuecomment-342830243 * derived classes have access to private names in base classes, if private names are in scope
* Merge pull request #1319 from bocoup/classfields-dupsdeletesLeo Balter2017-11-0314-0/+396
|\ | | | | classfields: add tests duplicate private fields and deleting private fields
| * classfields: add tests for early error delete private fieldValerie R Young2017-10-2614-0/+396
| |
* | class fields: added tests for privatename productionValerie R Young2017-11-0336-0/+134
| |
* | Merge pull request #1309 from bocoup/classfields-stringnameLeo Balter2017-11-0311-0/+232
|\ \ | | | | | | classfields: add tests for forbidden public/private propertynames
| * | Fixes for forbidden property namesValerie R Young2017-10-3111-11/+55
| | |
| * | classfields: add tests for forbidden propertynamesValerie R Young2017-10-279-0/+188
| | |
* | | Fix more issues in eval tests for class-fieldsAndré Bargull2017-11-0123-51/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | fix typos in class field templatesLeo Balter2017-10-276-10/+10
|/ /
* | Merge pull request #1303 from bocoup/classfieldsLeo Balter2017-10-2715-0/+357
|\ \ | | | | | | classfields: eval early errors
| * | classfields tests for eval early errorsValerie R Young2017-10-2015-0/+357
| |/
* | Add missing generators flags in templatesLeo Balter2017-10-264-4/+4
|/
* Add private fields tests of early errors and small fixValerie R Young2017-10-1811-0/+143
|
* class fields: add early errors for argument and superValerie R Young2017-10-1722-0/+335
|
* esid in case file instead of template fileValerie R Young2017-10-1741-7/+34
|
* Fix bugs in class-field template and case filesAndré Bargull2017-09-0116-31/+57
| | | | | | | | | | - Correct property access in class fields template - Remove assertions for properties which aren't present - Correct expected assertion value for uninitialized class field - Correct expected property descriptor attributes - Fix property tests in class-fields/string-literal-names.case - Pass restore option, otherwise it's not possible to call the method later - Fix async iteration tests to test iteration result objects
* Refactor class fields templates and casesDaniel Ehrenberg2017-08-2444-0/+1401
|
* Revert "Add initial set of class field tests (from V8's test-parsing.cc)"Daniel Ehrenberg2017-07-1346-1262/+0
| | | | This reverts commit e731114cff0a59936c5117f42d2d618c19920fb6.
* Add initial set of class field tests (from V8's test-parsing.cc)Xan López2017-07-1346-0/+1262
At this point this requires Babel for testing, but most tests in this commit won't pass until this is fixed: https://github.com/babel/babel/issues/5056