test262/test/built-ins/Promise/resolve
Mike Pennisi 219bdc6f73 Promise: Add tests to disallow faulty optimization
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
2016-02-10 13:38:03 -05:00
..
S25.4.4.5_A1.1_T1.js Formalize tests for built-in Promise methods 2015-07-07 13:55:57 -04:00
S25.4.4.5_A2.1_T1.js Move test/built-ins/Promise/prototype/resolve/ to test/built-ins/Promise/resolve. Closes gh-146 2015-02-17 13:31:28 -05:00
S25.4.4.5_A2.2_T1.js Move test/built-ins/Promise/prototype/resolve/ to test/built-ins/Promise/resolve. Closes gh-146 2015-02-17 13:31:28 -05:00
S25.4.4.5_A2.3_T1.js Move test/built-ins/Promise/prototype/resolve/ to test/built-ins/Promise/resolve. Closes gh-146 2015-02-17 13:31:28 -05:00
S25.4.4.5_A3.1_T1.js 2 new tests re: foreign thenables 2015-02-17 18:27:34 -07:00
S25.4.4.5_A4.1_T1.js Move test/built-ins/Promise/prototype/resolve/ to test/built-ins/Promise/resolve. Closes gh-146 2015-02-17 13:31:28 -05:00
S25.Promise_resolve_foreign_thenable_1.js 2 new tests re: foreign thenables 2015-02-17 18:27:34 -07:00
S25.Promise_resolve_foreign_thenable_2.js 2 new tests re: foreign thenables 2015-02-17 18:27:34 -07:00
arg-non-thenable.js Extend test coverage for Promise built-in 2015-07-08 14:08:24 -04:00
arg-poisoned-then.js Extend test coverage for Promise built-in 2015-07-08 14:08:24 -04:00
arg-uniq-ctor.js Extend test coverage for Promise built-in 2015-07-08 14:08:24 -04:00
capability-executor-called-twice.js Improve test coverage for various Promise methods 2015-12-02 18:06:40 +01:00
capability-executor-not-callable.js Improve test coverage for various Promise methods 2015-12-02 18:06:40 +01:00
context-non-object-with-promise.js Improve test coverage for various Promise methods 2015-12-02 18:06:40 +01:00
ctx-ctor-throws.js Extend coverage for NewPromiseCapability 2016-01-07 12:42:44 -05:00
ctx-ctor.js Extend test coverage for Promise built-in 2015-07-08 14:08:24 -04:00
ctx-non-ctor.js Extend test coverage for Promise built-in 2015-07-08 14:08:24 -04:00
ctx-non-object.js Extend test coverage for Promise built-in 2015-07-08 14:08:24 -04:00
length.js Formalize tests for built-in Promise methods 2015-07-07 13:55:57 -04:00
name.js Formalize tests for built-in Promise methods 2015-07-07 13:55:57 -04:00
prop-desc.js Formalize tests for built-in Promise methods 2015-07-07 13:55:57 -04:00
resolve-from-promise-capability.js Improve test coverage for various Promise methods 2015-12-02 18:06:40 +01:00
resolve-non-obj.js Add tests for Promise Resolve Functions 2016-01-19 16:32:36 -08:00
resolve-non-thenable.js Add tests for Promise Resolve Functions 2016-01-19 16:32:36 -08:00
resolve-poisoned-then.js Add tests for Promise Resolve Functions 2016-01-19 16:32:36 -08:00
resolve-prms-cstm-then.js Promise: Add tests to disallow faulty optimization 2016-02-10 13:38:03 -05:00
resolve-self.js Add tests for Promise Resolve Functions 2016-01-19 16:32:36 -08:00
resolve-thenable.js Add tests for Promise Resolve Functions 2016-01-19 16:32:36 -08:00