v8/test
littledan ee9d7acafc Partial rollback of Promise error checking
As V8 becomes more and more spec-compliant, Promise polyfill libraries
like core.js expect fully correct. However, our Promises do not yet
support Symbol.species. Therefore, a case like

```
var test = new Promise(function(){});
test.constructor = function(){};
Promise.resolve(test)
```

would lead to an unhandled Promise rejection, whereas it should not
because test.constructor[Symbol.species] is undefined, so test.then
should end up constructing %Promise% as a fallback, rather than
calling test.constructor as if it were a constructor, which leads
this error checking code to throw.

For now, this patch removes the error checking code (which was not
present until recently). In an interactive test using core.js, the
error message on the console goes away with this patch. When @@species
support is in place, this patch can be reverted. A regression test
is added which checks for the same thing.

Partially reverted patch was originally out for review at
https://codereview.chromium.org/1531073004

BUG=v8:4633
LOG=Y
R=adamk,caitp88@gmail.com

Review URL: https://codereview.chromium.org/1578893002

Cr-Commit-Position: refs/heads/master@{#33217}
2016-01-11 22:42:11 +00:00
..
benchmarks [test] Re-enable typescript that is no longer failing on ia32. 2015-10-26 06:00:35 +00:00
cctest Fixing asm validation of switch statements. 2016-01-11 20:36:49 +00:00
intl Enable some passing, disabled Intl tests 2015-12-12 01:33:52 +00:00
js-perf-test Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
memory
message Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
mjsunit Partial rollback of Promise error checking 2016-01-11 22:42:11 +00:00
mozilla Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
preparser Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
promises-aplus Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00
simdjs Revert "[turbofan] Stage --turbo-inlining behind --turbo flag." and "[turbofan] Skip more tests that fail with --turbo-inlining." 2015-10-20 06:23:02 +00:00
test262 Partial rollback of Promise error checking 2016-01-11 22:42:11 +00:00
unittests [Interpreter] Add wide context slot load / store operations. 2016-01-11 16:38:33 +00:00
webkit Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
bot_default.gyp [swarming] Isolate bot_default. 2015-10-19 09:52:47 +00:00
bot_default.isolate [swarming] Isolate bot_default. 2015-10-19 09:52:47 +00:00
default.gyp [swarming] Run unittests together with default tests. 2015-10-06 09:31:49 +00:00
default.isolate [swarming] Run unittests together with default tests. 2015-10-06 09:31:49 +00:00
ignition.gyp [test] Add ignition test set. 2016-01-04 17:26:42 +00:00
ignition.isolate [test] Add ignition test set. 2016-01-04 17:26:42 +00:00
optimize_for_size.gyp [swarming] Isolate webkit and optimize_for_size. 2015-10-14 17:35:05 +00:00
optimize_for_size.isolate [swarming] Isolate webkit and optimize_for_size. 2015-10-14 17:35:05 +00:00