Enter context scope before InternalCallbackScope
This commit is contained in:
parent
83f01096c0
commit
e79b18762e
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "atom/common/api/locker.h"
|
||||
#include "atom/common/atom_version.h"
|
||||
#include "atom/common/chrome_version.h"
|
||||
#include "atom/common/native_mate_converters/string16_converter.h"
|
||||
|
@ -97,8 +98,11 @@ void AtomBindings::OnCallNextTick(uv_async_t* handle) {
|
|||
for (std::list<node::Environment*>::const_iterator it =
|
||||
self->pending_next_ticks_.begin();
|
||||
it != self->pending_next_ticks_.end(); ++it) {
|
||||
node::Environment* env = *it;
|
||||
mate::Locker locker(env->isolate());
|
||||
v8::Context::Scope context_scope(env->context());
|
||||
node::InternalCallbackScope scope(
|
||||
*it,
|
||||
env,
|
||||
v8::Local<v8::Object>(),
|
||||
{0, 0},
|
||||
node::InternalCallbackScope::kAllowEmptyResource);
|
||||
|
|
Loading…
Reference in a new issue