mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +02:00
The original implementation of the test for the absense of a [[PromiseState]] internal slot did not actually assert the documented semantics. Re-implement the test to rely on the IsPromise abstract operation (via `Promise.prototype.then`) to accurately ensure that the object does not have a [[PromiseState]] internal slot. In relying on the semantics of the `instanceof` operator, the original test for the [[Prototype]] internal slot was imprecise (the assertion could be satisfied if additional objects were incorrectly defined on the prototype chain). Re-write the test to assert the value of the [[Prototype]] internal slot directly.
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
Description
Languages
JavaScript
99.7%
Python
0.2%