mirror of https://github.com/tc39/test262.git
ECMA262 allows for an arbitrary number of "ScriptJob"s to run in a given realm. Although there is no standard mechanism for enqueuing these jobs, many implementations offer this functionality through custom APIs. In those hosts, the semantics describing script interactions are directly observable. In order to guarantee conformance to the specification in advance of a standardized API, Test262 now requires that hosts provide a $.evalScript function whose behavior is defined in the project's "INTERPRETING.md" file. Use this host-provided API to ensure that implementations correctly observe the specification text that dictates script interactions. (In writing these tests, I noticed some gaps in coverage that are observable from a single script execution. This patch includes a dedicated commit for these tests that do not require $.evalScript.) * Improve coverage of GlobalDeclarationInstantiation * Add tests for script interactions Use the host-provied `$.evalScript` method to assert conformance to the specification text that defines script interactions. * fixup! Improve coverage of GlobalDeclarationInstantiation |
||
---|---|---|
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
There are a number of volunteer-maintained projects that may be used to execute Test262 in various ECMAScript hosts:
- https://github.com/bterlson/test262-harness (platform: Node.js)
- https://github.com/test262-utils/test262-harness-py (platform: Python)