Commit d9a66ad9 authored by rafaelw@chromium.org's avatar rafaelw@chromium.org

Runtime::RunMicrotask should silent return if no pending microtask work (rather than asserting)

R=rossberg@chromium.org, rossberg
BUG=347532

Review URL: https://codereview.chromium.org/181013008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19588 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ce0f1b3d
...@@ -14685,7 +14685,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotaskPending) { ...@@ -14685,7 +14685,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetMicrotaskPending) {
RUNTIME_FUNCTION(MaybeObject*, Runtime_RunMicrotasks) { RUNTIME_FUNCTION(MaybeObject*, Runtime_RunMicrotasks) {
HandleScope scope(isolate); HandleScope scope(isolate);
ASSERT(args.length() == 0); ASSERT(args.length() == 0);
Execution::RunMicrotasks(isolate); if (isolate->microtask_pending())
Execution::RunMicrotasks(isolate);
return isolate->heap()->undefined_value(); return isolate->heap()->undefined_value();
} }
......
...@@ -217,9 +217,6 @@ var knownProblems = { ...@@ -217,9 +217,6 @@ var knownProblems = {
"DataViewGetBuffer": true, "DataViewGetBuffer": true,
"DataViewGetByteLength": true, "DataViewGetByteLength": true,
"DataViewGetByteOffset": true, "DataViewGetByteOffset": true,
// Only ever called internally.
"RunMicrotasks": true
}; };
var currentlyUncallable = { var currentlyUncallable = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment