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.