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

Unified Diff: test/cctest/test-code-stub-assembler.cc

Issue 2633443002: [promisehook] Pass deferred promise to Before/After callback (Closed)
Patch Set: Remove adaptor Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-code-stub-assembler.cc
diff --git a/test/cctest/test-code-stub-assembler.cc b/test/cctest/test-code-stub-assembler.cc
index e3e983478e06a8cb9d8900d205df592e6bd72bf2..6e2bb99a09ef35b221990d53122935833e51e6ec 100644
--- a/test/cctest/test-code-stub-assembler.cc
+++ b/test/cctest/test-code-stub-assembler.cc
@@ -1823,14 +1823,13 @@ TEST(AllocatePromiseReactionJobInfo) {
PromiseBuiltinsAssembler p(data.state());
Node* const context = m.Parameter(kNumParams + 2);
- Node* const promise = p.AllocateAndInitJSPromise(context);
Node* const tasks = m.AllocateFixedArray(FAST_ELEMENTS, m.IntPtrConstant(1));
m.StoreFixedArrayElement(tasks, 0, m.UndefinedConstant());
Node* const deferred_promise =
m.AllocateFixedArray(FAST_ELEMENTS, m.IntPtrConstant(1));
m.StoreFixedArrayElement(deferred_promise, 0, m.UndefinedConstant());
Node* const info = m.AllocatePromiseReactionJobInfo(
- promise, m.SmiConstant(1), tasks, deferred_promise, m.UndefinedConstant(),
+ m.SmiConstant(1), tasks, deferred_promise, m.UndefinedConstant(),
m.UndefinedConstant(), context);
m.Return(info);
@@ -1844,7 +1843,6 @@ TEST(AllocatePromiseReactionJobInfo) {
Handle<PromiseReactionJobInfo> promise_info =
Handle<PromiseReactionJobInfo>::cast(result);
CHECK_EQ(Smi::FromInt(1), promise_info->value());
- CHECK(promise_info->promise()->IsJSPromise());
CHECK(promise_info->tasks()->IsFixedArray());
CHECK(promise_info->deferred_promise()->IsFixedArray());
CHECK(promise_info->deferred_on_resolve()->IsUndefined(isolate));
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698