@@ -894,7 +894,7 @@ void SetupDomainUse(const FunctionCallbackInfo<Value>& args) {
894894 if (using_domains) return ;
895895 HandleScope scope (node_isolate);
896896 using_domains = true ;
897- Local<Object> process = PersistentToLocal (process_p);
897+ Local<Object> process = PersistentToLocal (node_isolate, process_p);
898898 Local<Value> tdc_v = process->Get (String::New (" _tickDomainCallback" ));
899899 Local<Value> ndt_v = process->Get (String::New (" _nextDomainTick" ));
900900 if (!tdc_v->IsFunction ()) {
@@ -983,8 +983,8 @@ MakeDomainCallback(const Handle<Object> object,
983983 }
984984
985985 // process nextTicks after call
986- Local<Object> process = PersistentToLocal (process_p);
987- Local<Function> fn = PersistentToLocal (process_tickCallback);
986+ Local<Object> process = PersistentToLocal (node_isolate, process_p);
987+ Local<Function> fn = PersistentToLocal (node_isolate, process_tickCallback);
988988 fn->Call (process, 0 , NULL );
989989
990990 if (try_catch.HasCaught ()) {
@@ -1001,7 +1001,7 @@ MakeCallback(const Handle<Object> object,
10011001 int argc,
10021002 Handle<Value> argv[]) {
10031003 // TODO(trevnorris) Hook for long stack traces to be made here.
1004- Local<Object> process = PersistentToLocal (process_p);
1004+ Local<Object> process = PersistentToLocal (node_isolate, process_p);
10051005
10061006 if (using_domains)
10071007 return MakeDomainCallback (object, callback, argc, argv);
@@ -1035,7 +1035,7 @@ MakeCallback(const Handle<Object> object,
10351035 }
10361036
10371037 // process nextTicks after call
1038- Local<Function> fn = PersistentToLocal (process_tickCallback);
1038+ Local<Function> fn = PersistentToLocal (node_isolate, process_tickCallback);
10391039 fn->Call (process, 0 , NULL );
10401040
10411041 if (try_catch.HasCaught ()) {
@@ -1873,7 +1873,7 @@ void FatalException(Handle<Value> error, Handle<Message> message) {
18731873 if (fatal_exception_symbol.IsEmpty ())
18741874 fatal_exception_symbol = String::New (" _fatalException" );
18751875
1876- Local<Object> process = PersistentToLocal (process_p);
1876+ Local<Object> process = PersistentToLocal (node_isolate, process_p);
18771877 Local<Value> fatal_v = process->Get (fatal_exception_symbol);
18781878
18791879 if (!fatal_v->IsFunction ()) {
@@ -1928,7 +1928,7 @@ static void Binding(const FunctionCallbackInfo<Value>& args) {
19281928 String::Utf8Value module_v (module );
19291929 node_module_struct* modp;
19301930
1931- Local<Object> cache = PersistentToLocal (binding_cache);
1931+ Local<Object> cache = PersistentToLocal (node_isolate, binding_cache);
19321932 Local<Object> exports;
19331933
19341934 if (cache->Has (module )) {
@@ -1941,7 +1941,7 @@ static void Binding(const FunctionCallbackInfo<Value>& args) {
19411941 char buf[1024 ];
19421942 snprintf (buf, sizeof (buf), " Binding %s" , *module_v);
19431943
1944- Local<Array> modules = PersistentToLocal (module_load_list);
1944+ Local<Array> modules = PersistentToLocal (node_isolate, module_load_list);
19451945 uint32_t l = modules->Length ();
19461946 modules->Set (l, String::New (buf));
19471947
0 commit comments