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

Unified Diff: test/cctest/test-extra.js

Issue 2796243002: Add isPromise V8 extras util (Closed)
Patch Set: Fix typo Created 3 years, 8 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
« src/js/prologue.js ('K') | « 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-extra.js
diff --git a/test/cctest/test-extra.js b/test/cctest/test-extra.js
index 69a7e63221545de7e85a12ccc13fbe12b93748b0..689738c02b346edddcae5d60a5a45fea6d002985 100644
--- a/test/cctest/test-extra.js
+++ b/test/cctest/test-extra.js
@@ -93,7 +93,9 @@
fulfilledPromise2, // should be fulfilled with 2
rejectedPromise, // should be rejected with 3
rejectedButHandledPromise, // should be rejected but have a handler
- promiseStates // should be the string "pending fulfilled rejected"
+ promiseStates, // should be the string "pending fulfilled rejected"
+ promiseIsPromise: v8.isPromise(fulfilledPromise), // should be true
+ thenableIsPromise: v8.isPromise({ then() { } }) // should be false
};
};
})
« src/js/prologue.js ('K') | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698