Skip to content

Commit

Permalink
Upgrade node for new 7.4 patches and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jan 25, 2017
1 parent 6562acc commit 38da74c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion atom/common/node_bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ node::Environment* NodeBindings::CreateEnvironment(

// Node uses the deprecated SetAutorunMicrotasks(false) mode, we should switch
// to use the scoped policy to match blink's behavior.
if (!is_browser_) {
if (is_browser_) {
// SetAutorunMicrotasks is no longer called in node::CreateEnvironment
// so instead call it here to match expected node behavior
context->GetIsolate()->SetMicrotasksPolicy(v8::MicrotasksPolicy::kExplicit);
} else {
context->GetIsolate()->SetMicrotasksPolicy(v8::MicrotasksPolicy::kScoped);
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/node
Submodule node updated 1 files
+7 −4 src/node.cc

0 comments on commit 38da74c

Please sign in to comment.