Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 1578893002: Partial rollback of Promise error checking (Closed)

Created:
4 years, 11 months ago by Dan Ehrenberg
Modified:
4 years, 11 months ago
Reviewers:
caitp (gmail), adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

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 Committed: https://crrev.com/ee9d7acafc2996d1dad6e97bd04d852fd67bf974 Cr-Commit-Position: refs/heads/master@{#33217}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix test expectations #

Patch Set 3 : Remove unused variable from test #

Patch Set 4 : Add failing ignition test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -6 lines) Patch
M src/js/promise.js View 1 chunk +0 lines, -5 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 1 chunk +0 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-crbug-575314.js View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578893002/1
4 years, 11 months ago (2016-01-11 20:13:09 UTC) #2
adamk
lgtm % unused variable in test https://codereview.chromium.org/1578893002/diff/1/test/mjsunit/regress/regress-crbug-575314.js File test/mjsunit/regress/regress-crbug-575314.js (right): https://codereview.chromium.org/1578893002/diff/1/test/mjsunit/regress/regress-crbug-575314.js#newcode15 test/mjsunit/regress/regress-crbug-575314.js:15: var exception; This ...
4 years, 11 months ago (2016-01-11 20:17:17 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578893002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578893002/20001
4 years, 11 months ago (2016-01-11 20:18:42 UTC) #7
Dan Ehrenberg
https://codereview.chromium.org/1578893002/diff/1/test/mjsunit/regress/regress-crbug-575314.js File test/mjsunit/regress/regress-crbug-575314.js (right): https://codereview.chromium.org/1578893002/diff/1/test/mjsunit/regress/regress-crbug-575314.js#newcode15 test/mjsunit/regress/regress-crbug-575314.js:15: var exception; On 2016/01/11 at 20:17:17, adamk wrote: > ...
4 years, 11 months ago (2016-01-11 20:19:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578893002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578893002/40001
4 years, 11 months ago (2016-01-11 20:19:48 UTC) #11
caitp (gmail)
I'm not seeing how @@species impacts those tests at all, can you elaborate on that?
4 years, 11 months ago (2016-01-11 20:21:31 UTC) #12
caitp (gmail)
On 2016/01/11 20:21:31, caitp wrote: > I'm not seeing how @@species impacts those tests at ...
4 years, 11 months ago (2016-01-11 20:23:31 UTC) #13
caitp (gmail)
On 2016/01/11 20:21:31, caitp wrote: > I'm not seeing how @@species impacts those tests at ...
4 years, 11 months ago (2016-01-11 20:23:34 UTC) #14
Dan Ehrenberg
On 2016/01/11 at 20:23:34, caitpotter88 wrote: > On 2016/01/11 20:21:31, caitp wrote: > > I'm ...
4 years, 11 months ago (2016-01-11 20:29:53 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/10734)
4 years, 11 months ago (2016-01-11 20:44:05 UTC) #17
caitp (gmail)
On 2016/01/11 20:29:53, Dan Ehrenberg wrote: > On 2016/01/11 at 20:23:34, caitpotter88 wrote: > > ...
4 years, 11 months ago (2016-01-11 21:00:06 UTC) #18
caitp (gmail)
On 2016/01/11 21:00:06, caitp wrote: > On 2016/01/11 20:29:53, Dan Ehrenberg wrote: > > On ...
4 years, 11 months ago (2016-01-11 21:01:45 UTC) #19
Dan Ehrenberg
On 2016/01/11 at 21:01:45, caitpotter88 wrote: > On 2016/01/11 21:00:06, caitp wrote: > > On ...
4 years, 11 months ago (2016-01-11 21:38:51 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578893002/60001
4 years, 11 months ago (2016-01-11 22:11:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578893002/60001
4 years, 11 months ago (2016-01-11 22:35:39 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-11 22:41:19 UTC) #27
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 22:42:22 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ee9d7acafc2996d1dad6e97bd04d852fd67bf974
Cr-Commit-Position: refs/heads/master@{#33217}

Powered by Google App Engine
This is Rietveld 408576698