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

Issue 2589113002: [api] add API for Promise status and result. (Closed)

Created:
4 years ago by Yang
Modified:
4 years ago
CC:
cristiancavalli_google.com, ofrobots, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[api] add API for Promise status and result. Currently, to find out a Promise's status and result, one has to use the debug context. This is for example done in Node.js. This new API is a better replacement, also in the context of the debug context being deprecated eventually. R=franzih@chromium.org, gsathya@chromium.org, jochen@chromium.org BUG=v8:5764 Review-Url: https://codereview.chromium.org/2589113002 Cr-Commit-Position: refs/heads/master@{#41855} Committed: https://chromium.googlesource.com/v8/v8/+/28432588c231019c2bb0dfbba8eba4304779706b

Patch Set 1 #

Total comments: 12

Patch Set 2 : [api] add API for Promise status and result. #

Patch Set 3 : .# (use "git push" to publish your local commits) #

Patch Set 4 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -29 lines) Patch
M include/v8.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M src/builtins/builtins-promise.cc View 1 2 3 6 chunks +9 lines, -8 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/counters.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/globals.h View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M src/js/macros.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/runtime/runtime-promise.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M test/cctest/test-code-stub-assembler.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Yang
Please take a look. This is required for migrating Node.js off the debug context API.
4 years ago (2016-12-20 06:51:41 UTC) #1
gsathya
lgtm
4 years ago (2016-12-20 06:57:25 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2589113002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2589113002/diff/1/include/v8.h#newcode3702 include/v8.h:3702: enum PromiseStatus { kPending, kFulfilled, kRejected }; why not ...
4 years ago (2016-12-20 07:49:52 UTC) #6
Yang
Addressed comments. Please take a look. https://codereview.chromium.org/2589113002/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2589113002/diff/1/include/v8.h#newcode3702 include/v8.h:3702: enum PromiseStatus { ...
4 years ago (2016-12-20 11:38:27 UTC) #7
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-12-20 11:41:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2589113002/60001
4 years ago (2016-12-20 11:43:25 UTC) #11
commit-bot: I haz the power
4 years ago (2016-12-20 12:13:36 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/28432588c231019c2bb0dfbba8eba430477...

Powered by Google App Engine
This is Rietveld 408576698