mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
Add tests that assert behavior when a Promise is resolved with another Promise whose `then` method has been overridden. Because all objects with a `then` method are treated equivalently, the presence of a [[PromiseState]] internal slot should have no effect on program behavior. These tests guard against a faulty optimization originally implemented in V8: https://bugs.chromium.org/p/v8/issues/detail?id=3641
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 Gorkem Yakin (@goyakin) 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.
Description
Languages
JavaScript
99.7%
Python
0.2%