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

Unified Diff: src/v8natives.js

Issue 283403002: Add builtin detector to generate-runtime-tests.py (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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 | « no previous file | tools/generate-runtime-tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 46dfab41b86c286a1661c26142cb45a91edf2355..80b1f9af7721a9d43d35a249ec60b30f45324028 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1886,6 +1886,9 @@ function RunMicrotasksJS() {
}
function EnqueueMicrotask(fn) {
+ if (!IS_FUNCTION(func)) {
+ throw new $TypeError('Can only enqueue functions');
+ }
var microtaskState = %GetMicrotaskState();
if (IS_UNDEFINED(microtaskState.queue) || IS_NULL(microtaskState.queue)) {
microtaskState.queue = new InternalArray;
« no previous file with comments | « no previous file | tools/generate-runtime-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698