From 32b456328027875a719c879f96eae3f562ed8931 Mon Sep 17 00:00:00 2001 From: Rohini Harendra Date: Sat, 17 May 2014 05:36:56 +0000 Subject: [PATCH] src: NODE_UNIXTIME_V8 needs to use an Isolate Signed-off-by: Timothy J Fontaine --- src/node.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node.h b/src/node.h index 5ba5aa9c86..d6b1a1f230 100644 --- a/src/node.h +++ b/src/node.h @@ -172,7 +172,8 @@ NODE_EXTERN extern bool no_deprecation; NODE_EXTERN int Start(int argc, char *argv[]); /* Converts a unixtime to V8 Date */ -#define NODE_UNIXTIME_V8(t) v8::Date::New(1000*static_cast(t)) +#define NODE_UNIXTIME_V8(t) v8::Date::New(v8::Isolate::GetCurrent(), \ + 1000 * static_cast(t)) #define NODE_V8_UNIXTIME(v) (static_cast((v)->NumberValue())/1000.0); // Used to be a macro, hence the uppercase name.