src: NODE_UNIXTIME_V8 needs to use an Isolate
authorRohini Harendra <rohini.raghav@gmail.com>
Sat, 17 May 2014 05:36:56 +0000 (05:36 +0000)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Thu, 22 May 2014 23:04:27 +0000 (16:04 -0700)
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
src/node.h

index 5ba5aa9..d6b1a1f 100644 (file)
@@ -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<double>(t))
+#define NODE_UNIXTIME_V8(t) v8::Date::New(v8::Isolate::GetCurrent(),          \
+    1000 * static_cast<double>(t))
 #define NODE_V8_UNIXTIME(v) (static_cast<double>((v)->NumberValue())/1000.0);
 
 // Used to be a macro, hence the uppercase name.