|
|
Created:
6 years, 10 months ago by yhirano Modified:
6 years, 10 months ago CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive Base URL:
https://chromium.googlesource.com/chromium/blink.git@master Visibility:
Public. |
DescriptionCount Promise constructor callings.
Promise API is changing (See [1], [2] for details).
Count how Promise constructor functions are called.
[1] https://mail.mozilla.org/pipermail/es-discuss/2014-January/035976.html
[2] https://mail.mozilla.org/pipermail/es-discuss/2014-February/036193.html
BUG=343815
R=tkent, haraken
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167206
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #
Messages
Total messages: 21 (0 generated)
We don't know whether the API will be changed or not, right? The message is not actionable for web authors, and just confuses them. I don't think we should show such message.
Agreed with tkent-san about the message. https://codereview.chromium.org/166173002/diff/1/Source/bindings/v8/custom/V8... File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/166173002/diff/1/Source/bindings/v8/custom/V8... Source/bindings/v8/custom/V8PromiseCustom.cpp:491: ASSERT(executionContext); Remove this ASSERT. This should be always non NULL. (I'll try to remove a path that returns 0 from toExecutionContext(). As mentioned in a FIXME, it cannot happen.)
On 2014/02/14 07:20:53, tkent wrote: > We don't know whether the API will be changed or not, right? > > The message is not actionable for web authors, and just confuses them. I don't > think we should show such message. As in [2], Promise.resolve and Promise.cast has changed. I am not sure if further changes will be made. We are discussing whether we should unship Promise or not.
https://codereview.chromium.org/166173002/diff/1/Source/bindings/v8/custom/V8... File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/166173002/diff/1/Source/bindings/v8/custom/V8... Source/bindings/v8/custom/V8PromiseCustom.cpp:491: ASSERT(executionContext); On 2014/02/14 07:21:39, haraken wrote: > > Remove this ASSERT. This should be always non NULL. (I'll try to remove a path > that returns 0 from toExecutionContext(). As mentioned in a FIXME, it cannot > happen.) Done.
On 2014/02/14 07:37:11, yhirano wrote: > On 2014/02/14 07:20:53, tkent wrote: > > We don't know whether the API will be changed or not, right? > > > > The message is not actionable for web authors, and just confuses them. I don't > > think we should show such message. > > As in [2], Promise.resolve and Promise.cast has changed. > I am not sure if further changes will be made. > We are discussing whether we should unship Promise or not. I see. Anyway, I object to show messages though we don't have alternatives.
On 2014/02/14 07:39:59, tkent wrote: > On 2014/02/14 07:37:11, yhirano wrote: > > On 2014/02/14 07:20:53, tkent wrote: > > > We don't know whether the API will be changed or not, right? > > > > > > The message is not actionable for web authors, and just confuses them. I > don't > > > think we should show such message. > > > > As in [2], Promise.resolve and Promise.cast has changed. > > I am not sure if further changes will be made. > > We are discussing whether we should unship Promise or not. > > I see. Anyway, I object to show messages though we don't have alternatives. Is showing messages only in Promise.cast and Promise.resolve acceptable?
Should we discuss this topic on blink-dev? Now that we've decided to ship promises, we should be careful when making changes the API. In particular, I wonder if we should push back on TC39 not to change the API. Maybe some discussion on blink-dev will help guide us here.
not lgtm pending discussion on blink-dev
OK, I removed warning messages.
On 2014/02/14 08:16:42, abarth wrote: > Should we discuss this topic on blink-dev? Now that we've decided to ship > promises, we should be careful when making changes the API. In particular, I > wonder if we should push back on TC39 not to change the API. Maybe some > discussion on blink-dev will help guide us here. I will start a thread on blink-dev about this problem.
Thanks!
PTAL? Sorry to rush you, but I'd like to land this CL before the coming branch point.
LGTM
The CQ bit was checked by haraken@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/166173002/210001
Message was sent while issue was closed.
Change committed as 167206
Message was sent while issue was closed.
A revert of this CL has been created in https://codereview.chromium.org/167253002/ by abarth@chromium.org. The reason for reverting is: This CL was landed with a "not lgtm"..
Message was sent while issue was closed.
On 2014/02/14 17:50:20, abarth wrote: > A revert of this CL has been created in > https://codereview.chromium.org/167253002/ by mailto:abarth@chromium.org. > > The reason for reverting is: This CL was landed with a "not lgtm".. Oops!!! Sorry. I see now that you changed the CL. I cancelled the revert.
Message was sent while issue was closed.
Could we merge this to Beta to get better number sooner?
Message was sent while issue was closed.
I see, I've requested merging. |