summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo intialize(r) -> initialize(r)Adrian Heine2018-02-122-2/+2
|
* 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-05145-149/+159
| | | | | | | | | | | | | | 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-2610-4/+10
|/
* 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
|
* Merge pull request #1293 from bocoup/esid-fixLeo Balter2017-10-1741-7/+34
|\ | | | | fix: esid in case file instead of template file
| * esid in case file instead of template fileValerie R Young2017-10-1741-7/+34
| |
* | Update test cases for spec-changeCaitlin Potter2017-10-171-14/+11
|/ | | | | | This change updates test cases to assume that the "next" method is only loaded from a synchronous iterator once, and is re-used for each call to Async-from-Sync Iterator.next(), based on https://github.com/tc39/ecma262/pull/988
* Add generators flags for tests depending on generators features (#1259)Leo Balter2017-10-0489-28/+89
| | | | | | | | | | * Add missing generators feature flags * Generate files * Add generators flags * fixup! Add generators flags
* Update async iteration tests with respect to pending spec changeCaitlin Potter2017-10-041-21/+18
| | | | | | | Update behaviour based on changes from https://github.com/tc39/ecma262/pull/988. The actual spec change PR for async iteration is not yet uploaded. This does not include any changes to Async-from-Sync Iterator.
* Added test case to consider rest ordering (#1242)Caio Lima2017-09-261-0/+23
|
* Change case-files for destructuring-with-yield to not rely on destructuring ↵André Bargull2017-09-166-26/+79
| | | | target evaluation order
* Add Symbol.iterator features flags to test generation filesLeo Balter2017-09-0857-43/+57
|
* Update test generation files to use verifyProperty instead of legacy helpersLeo Balter2017-09-0853-279/+406
|
* Add missing Symbol features flagsLeo Balter2017-09-078-7/+8
|
* Merge pull request #1205 from anba/class-fields-fixesLeo Balter2017-09-0516-31/+57
|\ | | | | Misc. class fields fixes
| * 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
* | Fix issues in async generator case filesAndré Bargull2017-09-045-6/+28
|/ | | | | | | | | | | | | Incorrect $DONE handlers which led to calling $DONE twice - async-generators/yield-promise-reject-next-yield-star-async-iterator.case - dstr-assignment-for-await/array-elem-trlg-iter-rest-nrml-close-skip.case $DONE handler not called at all: - dstr-assignment-for-await/array-elem-put-const.case - dstr-assignment-for-await/array-elem-trlg-iter-elision-iter-nrml-close-null.case Incorrect assumed execution sequence in IteratorDestructuringAssignmentEvaluation: - dstr-assignment-for-await/array-elem-iter-rtrn-close-null.case
* Refactor class fields templates and casesDaniel Ehrenberg2017-08-2444-0/+1401
|
* Remove remaining cases for ...{Leo Balter2017-08-1814-394/+0
|
* Merge pull request #1182 from rwaldron/1181Leo Balter2017-08-186-6/+6
|\ | | | | features: generator => generators. Fixes gh-1181
| * features: generator => generatorsRick Waldron2017-08-166-6/+6
| |
* | Removes previously missed object rest `...{` cases.Rick Waldron2017-08-183-99/+0
|/
* Remove selection of incorrect async iteration testsRick Waldron2017-07-2110-519/+0
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* 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
* Duplicate src/dstr-assignment/obj-rest-computed-property.case into regular ↵Rick Waldron2017-06-282-1/+41
| | | | | | and sloppy versions. Fixes gh-1082 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* async-iteration: yield Promise.reject(value) is treated as throw value (rejects)Rick Waldron2017-06-286-0/+180
| | | | | | | - http://tc39.github.io/tc39-notes/2017-05_may-25.html#15iva-revisiting-async-generator-yield-behavior - http://tc39.github.io/tc39-notes/2017-05_may-25.html#conclusionresolution-12 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Force "early error" tests to fail if evaluatedMike Pennisi2017-06-28125-0/+246
| | | | | This pattern makes expectations more explicit by making test files more literal.
* Remove tests that allow `...{` in object destructuring. Ref gh-1050Rick Waldron2017-06-233-83/+0
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Merge pull request #1045 from caiolima/obj-rest-computed-propLeo Balter2017-06-121-0/+38
|\ | | | | Adding case to computed property
| * Adding case to computed propertyCaio Lima2017-05-221-0/+38
| |
* | Remove src/dstr-assignment/default/for-await-of.template (invalid)Rick Waldron2017-06-121-39/+0
| | | | | | | | | | | | Will need to revisit with a function and generator version Signed-off-by: Rick Waldron <waldron.rick@gmail.com>