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

Issue 17993004: Implement PromiseResolver.prototype.{fulfill, reject} (Closed)

Created:
7 years, 5 months ago by yhirano
Modified:
7 years, 5 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, eae+blinkwatch, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Implement PromiseResolver.prototype.{fulfill, reject} We are implementing DOM/Promises. The first CL is https://src.chromium.org/viewvc/blink?revision=152943&view=revision . This CL implements PromiseResolver.prototype.fulfill and PromiseResolver.prototype.reject. Again, all methods are marked as Custom and there are many boilerplate. we will fix them in a future CL. There are no tests. We will add tests in a future. BUG=243345 R=abarth Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153199

Patch Set 1 #

Patch Set 2 : #

Total comments: 35

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -18 lines) Patch
M Source/bindings/v8/custom/V8PromiseCustom.h View 1 2 3 4 1 chunk +44 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8PromiseCustom.cpp View 1 2 3 4 5 6 1 chunk +212 lines, -17 lines 0 comments Download
M Source/bindings/v8/custom/V8PromiseResolverCustom.cpp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/dom/PromiseResolver.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
yhirano
7 years, 5 months ago (2013-06-27 06:03:54 UTC) #1
yhirano
For the global receiver problem pointed in [1], I have no idea how to call ...
7 years, 5 months ago (2013-06-27 06:10:06 UTC) #2
abarth-chromium
On 2013/06/27 06:10:06, yhirano wrote: > For the global receiver problem pointed in [1], I ...
7 years, 5 months ago (2013-06-27 06:21:04 UTC) #3
yhirano
On 2013/06/27 06:21:04, abarth wrote: > On 2013/06/27 06:10:06, yhirano wrote: > > For the ...
7 years, 5 months ago (2013-06-27 06:25:59 UTC) #4
haraken
On 2013/06/27 06:25:59, yhirano wrote: > On 2013/06/27 06:21:04, abarth wrote: > > On 2013/06/27 ...
7 years, 5 months ago (2013-06-27 06:28:08 UTC) #5
abarth-chromium
LGTM https://codereview.chromium.org/17993004/diff/3001/Source/bindings/v8/custom/V8PromiseCustom.cpp File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/17993004/diff/3001/Source/bindings/v8/custom/V8PromiseCustom.cpp#newcode63 Source/bindings/v8/custom/V8PromiseCustom.cpp:63: ASSERT(!result.IsEmpty()); You can check the m_ versions of ...
7 years, 5 months ago (2013-06-27 06:34:01 UTC) #6
abarth-chromium
It would be better to pass Undefined and let V8 find the global object for ...
7 years, 5 months ago (2013-06-27 06:34:44 UTC) #7
haraken
> I think I can fix it. Just a second. > > As far as ...
7 years, 5 months ago (2013-06-27 06:39:36 UTC) #8
abarth-chromium
On 2013/06/27 06:39:36, haraken wrote: > Why can't you pass the global object when you ...
7 years, 5 months ago (2013-06-27 06:42:08 UTC) #9
haraken
It's a bit sad you have to write a lot of ASSERT(!value.IsEmpty()); ASSERT(value->IsXXX()); v8::Handle<v8::Value> v ...
7 years, 5 months ago (2013-06-27 06:55:56 UTC) #10
abarth-chromium
Does value.As<XXX>(); ASSERT already in V8?
7 years, 5 months ago (2013-06-27 07:43:20 UTC) #11
yhirano
On 2013/06/27 07:43:20, abarth wrote: > Does value.As<XXX>(); ASSERT already in V8? There seems to ...
7 years, 5 months ago (2013-06-27 08:08:00 UTC) #12
abarth-chromium
Maybe we don't have V8_ENABLE_CHECKS enabled, even in debug. (This isn't a problem we need ...
7 years, 5 months ago (2013-06-27 08:22:33 UTC) #13
yhirano
On 2013/06/27 08:22:33, abarth wrote: > Maybe we don't have V8_ENABLE_CHECKS enabled, even in debug. ...
7 years, 5 months ago (2013-06-27 08:44:50 UTC) #14
haraken
> Then, can I delete many of IsEmpty() and IsXxx() from my CL? > Many ...
7 years, 5 months ago (2013-06-27 08:48:03 UTC) #15
yhirano
https://codereview.chromium.org/17993004/diff/3001/Source/bindings/v8/custom/V8PromiseCustom.cpp File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/17993004/diff/3001/Source/bindings/v8/custom/V8PromiseCustom.cpp#newcode63 Source/bindings/v8/custom/V8PromiseCustom.cpp:63: ASSERT(!result.IsEmpty()); On 2013/06/27 06:34:01, abarth wrote: > You can ...
7 years, 5 months ago (2013-06-27 09:29:22 UTC) #16
haraken
LGTM https://codereview.chromium.org/17993004/diff/32001/Source/bindings/v8/custom/V8PromiseCustom.cpp File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/17993004/diff/32001/Source/bindings/v8/custom/V8PromiseCustom.cpp#newcode226 Source/bindings/v8/custom/V8PromiseCustom.cpp:226: return value->IsUndefined(); You might want to add ASSERT(!value.IsEmpty()) ...
7 years, 5 months ago (2013-06-27 10:36:29 UTC) #17
yhirano
https://codereview.chromium.org/17993004/diff/32001/Source/bindings/v8/custom/V8PromiseCustom.cpp File Source/bindings/v8/custom/V8PromiseCustom.cpp (right): https://codereview.chromium.org/17993004/diff/32001/Source/bindings/v8/custom/V8PromiseCustom.cpp#newcode226 Source/bindings/v8/custom/V8PromiseCustom.cpp:226: return value->IsUndefined(); On 2013/06/27 10:36:29, haraken wrote: > > ...
7 years, 5 months ago (2013-06-28 00:47:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/17993004/28006
7 years, 5 months ago (2013-06-28 00:47:33 UTC) #19
commit-bot: I haz the power
7 years, 5 months ago (2013-06-28 04:23:37 UTC) #20
Message was sent while issue was closed.
Change committed as 153199

Powered by Google App Engine
This is Rietveld 408576698