projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bbb3cc
)
src: NODE_UNIXTIME_V8 needs to use an Isolate
author
Rohini Harendra
<rohini.raghav@gmail.com>
Sat, 17 May 2014 05:36:56 +0000
(
05:36
+0000)
committer
Timothy 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
patch
|
blob
|
history
diff --git
a/src/node.h
b/src/node.h
index
5ba5aa9
..
d6b1a1f
100644
(file)
--- 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<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.