mirror of https://github.com/tc39/test262.git
ab4ff914fb
This re-factors some existing Sputnik tests to be more targeted and to use a pattern that can be generalized to other forms. We could test these all day, but I've limited myself to forms introduced in ES2015, specifically YieldExpression and new.target. Note that SpiderMonkey incorrectly throws a SyntaxError for these. I thoughtlessly wrote ReferenceError tests for yield = 1 until I realized that such productions are not actually recognized by the grammar, so the early errors do not apply. Instead, I've added a negative syntax test for that case. * Refactor test for valid cover * Add tests for ValidSimpleAssignmentTarget Ensure that constructs introduced in ES2015 are disallowed as assignment targets, with or without a "cover" grammar. * Add test for grammar precedence of YieldExpression |
||
---|---|---|
docs | ||
harness | ||
src | ||
test | ||
tools | ||
website | ||
.gitattributes | ||
.gitignore | ||
.hgignore | ||
.jshintrc | ||
CONTRIBUTING.md | ||
INTERPRETING.md | ||
LICENSE | ||
README.md | ||
excludelist.xml | ||
make.py |
README.md
Test262 is the official ECMAScript (ECMA-262) conformance suite.
Test262 tests conformance to the continually maintained draft future ECMAScript standard found at http://tc39.github.io/ecma262/ , together with any Stage 3 or later TC39 proposals. It is maintained by Tom Care (@tcare) with significant contributions from many in the ECMAScript community.
Contributing to Test262
See CONTRIBUTING.md
- Sign the Test262 CLA.
- Send a pull request. Please make sure you have one commit per pull request. If you have multiple commits, squash them before sending the pull request.
Running Test262
See INTERPRETING.md