From 3f091c7293793a04d3391baa0a1a6d5318943717 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 29 Mar 2013 16:13:06 +0100 Subject: [PATCH] src: fix Persistent<> deprecation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass the Isolate to Persistent::New(). Fixes the following warning: ../../src/node.cc: In function ‘v8::Handle node::UsingDomains(const v8::Arguments&)’: ../../src/node.cc:921: warning: ‘New’ is deprecated declared at ../../deps/v8/include/v8.h:4438) --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 467ba3ea753..58036033ec2 100644 --- a/src/node.cc +++ b/src/node.cc @@ -918,7 +918,7 @@ Handle UsingDomains(const Arguments& args) { Local ndt = ndt_v.As(); process->Set(String::New("_tickCallback"), tdc); process->Set(String::New("nextTick"), ndt); - process_tickCallback = Persistent::New(tdc); + process_tickCallback = Persistent::New(node_isolate, tdc); return Undefined(); }