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

Unified Diff: src/promise.js

Issue 292173011: Harden a few builtins (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactored Created 6 years, 7 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 | « src/objects.cc ('k') | src/uri.js » ('j') | src/uri.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/promise.js
diff --git a/src/promise.js b/src/promise.js
index d202f2886166af38985140786888831c0ba25be5..3c97441694cab90afe8aaed426c4e322dbfb9365 100644
--- a/src/promise.js
+++ b/src/promise.js
@@ -151,6 +151,7 @@ function PromiseCatch(onReject) {
}
function PromiseEnqueue(value, tasks) {
+ BUILTIN_ASSERT(IS_ARRAY(tasks));
%EnqueueMicrotask(function() {
for (var i = 0; i < tasks.length; i += 2) {
PromiseHandle(value, tasks[i], tasks[i + 1])
« no previous file with comments | « src/objects.cc ('k') | src/uri.js » ('j') | src/uri.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698