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

Issue 1098663002: Promise assimilation fix.

Created:
5 years, 8 months ago by yhirano
Modified:
5 years, 6 months ago
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Promise assimilation fix. Let x be a fulfilled promise and y be another promise. |x.then(() => y)| should call |y.then|, but the current implementation calls PromiseChain. We can see the difference when we set a custom function to |y.then|. This CL fixes the spec violation, but as a result |then| is no longer a wrapper of |chain| and in some cases it does not work well with |accept| or |chain|. That is not a problem for ES6 promise users because ES6 promise doesn't have them. LOG=N BUG=477921 Committed: https://crrev.com/2f57dff3ea0c45e1a61b334fda962460f89d71bc Cr-Commit-Position: refs/heads/master@{#28926}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : rebase #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -40 lines) Patch
M src/promise.js View 1 2 3 4 5 6 7 6 chunks +78 lines, -40 lines 0 comments Download
M test/mjsunit/es6/promises.js View 1 2 3 2 chunks +153 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (8 generated)
yhirano
https://codereview.chromium.org/1098663002/diff/1/test/webkit/fast/js/Promise-coerce.js File test/webkit/fast/js/Promise-coerce.js (right): https://codereview.chromium.org/1098663002/diff/1/test/webkit/fast/js/Promise-coerce.js#newcode1 test/webkit/fast/js/Promise-coerce.js:1: // Copyright 2015 the V8 project authors. All rights ...
5 years, 8 months ago (2015-04-17 08:01:35 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/1098663002/diff/1/src/promise.js File src/promise.js (right): https://codereview.chromium.org/1098663002/diff/1/src/promise.js#newcode154 src/promise.js:154: IsUnforgedPromise = function IsUnforgedPromise(x) { Does this need to ...
5 years, 8 months ago (2015-04-17 14:32:06 UTC) #4
yhirano
Thanks for the review. I rewrote the implementation and tests. Can you take a look? ...
5 years, 7 months ago (2015-04-30 05:05:16 UTC) #6
yhirano
ping
5 years, 7 months ago (2015-05-11 02:50:36 UTC) #7
caitp (gmail)
https://codereview.chromium.org/1098663002/diff/60001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/1098663002/diff/60001/src/promise.js#newcode116 src/promise.js:116: try { deferred.reject(exception); } catch (e) { } Is ...
5 years, 7 months ago (2015-05-11 03:02:16 UTC) #9
caitp (gmail)
https://codereview.chromium.org/1098663002/diff/60001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/1098663002/diff/60001/src/promise.js#newcode116 src/promise.js:116: try { deferred.reject(exception); } catch (e) { } On ...
5 years, 7 months ago (2015-05-11 03:06:05 UTC) #10
arv (Not doing code reviews)
Is this? https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-resolve-functions https://codereview.chromium.org/1098663002/diff/60001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/1098663002/diff/60001/src/promise.js#newcode110 src/promise.js:110: var then = result.then; Isn't this ...
5 years, 7 months ago (2015-05-11 13:53:16 UTC) #11
caitp (gmail)
https://codereview.chromium.org/1098663002/diff/60001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/1098663002/diff/60001/src/promise.js#newcode116 src/promise.js:116: try { deferred.reject(exception); } catch (e) { } On ...
5 years, 7 months ago (2015-05-11 15:02:34 UTC) #12
caitp (gmail)
5 years, 7 months ago (2015-05-11 15:02:35 UTC) #13
yhirano
https://codereview.chromium.org/1098663002/diff/60001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/1098663002/diff/60001/src/promise.js#newcode110 src/promise.js:110: var then = result.then; On 2015/05/11 13:53:15, arv wrote: ...
5 years, 7 months ago (2015-05-12 06:09:19 UTC) #14
rossberg
Hm, I'm a bit confused about this change. A couple of questions: Why is the ...
5 years, 7 months ago (2015-05-12 13:01:50 UTC) #15
yhirano
On 2015/05/12 13:01:50, rossberg wrote: > Hm, I'm a bit confused about this change. A ...
5 years, 7 months ago (2015-05-15 01:34:32 UTC) #16
rossberg
On 2015/05/15 01:34:32, yhirano wrote: > On 2015/05/12 13:01:50, rossberg wrote: > > Hm, I'm ...
5 years, 7 months ago (2015-05-20 08:32:03 UTC) #17
yhirano
> On 2015/05/15 01:34:32, yhirano wrote: > > On 2015/05/12 13:01:50, rossberg wrote: > > ...
5 years, 7 months ago (2015-05-20 11:59:41 UTC) #18
rossberg
On 2015/05/20 11:59:41, yhirano wrote: > > On 2015/05/15 01:34:32, yhirano wrote: > > > ...
5 years, 7 months ago (2015-05-20 12:48:37 UTC) #19
yhirano
On 2015/05/20 12:48:37, rossberg wrote: > On 2015/05/20 11:59:41, yhirano wrote: > > I was ...
5 years, 7 months ago (2015-05-26 10:29:24 UTC) #20
rossberg
LGTM [Sorry for the delay, I was on vacation.]
5 years, 6 months ago (2015-06-02 12:41:30 UTC) #21
yhirano
Can you land this CL? I'm not a V8 committer.
5 years, 6 months ago (2015-06-10 07:33:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1098663002/120001
5 years, 6 months ago (2015-06-10 08:01:17 UTC) #24
rossberg
On 2015/06/10 07:33:52, yhirano wrote: > Can you land this CL? I'm not a V8 ...
5 years, 6 months ago (2015-06-10 08:03:15 UTC) #25
yhirano
On 2015/06/10 08:03:15, rossberg wrote: > On 2015/06/10 07:33:52, yhirano wrote: > > Can you ...
5 years, 6 months ago (2015-06-10 08:08:17 UTC) #26
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/3455)
5 years, 6 months ago (2015-06-10 08:15:15 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1098663002/160001
5 years, 6 months ago (2015-06-11 07:40:05 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 6 months ago (2015-06-11 07:42:40 UTC) #32
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/2f57dff3ea0c45e1a61b334fda962460f89d71bc Cr-Commit-Position: refs/heads/master@{#28926}
5 years, 6 months ago (2015-06-11 07:42:49 UTC) #33
Yang
A revert of this CL (patchset #8 id:160001) has been created in https://codereview.chromium.org/1176163004/ by yangguo@chromium.org. ...
5 years, 6 months ago (2015-06-11 08:00:54 UTC) #34
Yang
On 2015/06/11 08:00:54, Yang wrote: > A revert of this CL (patchset #8 id:160001) has ...
5 years, 6 months ago (2015-06-11 08:16:04 UTC) #35
yhirano
5 years, 6 months ago (2015-06-11 11:53:51 UTC) #36
Reopen as Revert of Revert of Revert is landed.
https://codereview.chromium.org/1181603003/

Powered by Google App Engine
This is Rietveld 408576698