We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c4d316 commit 4d21e34Copy full SHA for 4d21e34
src/node.h
@@ -287,8 +287,11 @@ NODE_EXTERN struct uv_loop_s* GetCurrentEventLoop(v8::Isolate* isolate);
287
/* Converts a unixtime to V8 Date */
288
NODE_DEPRECATED("Use v8::Date::New() directly",
289
inline v8::Local<v8::Value> NODE_UNIXTIME_V8(double time) {
290
- return v8::Date::New(v8::Isolate::GetCurrent(), 1000 * time);
291
-})
+ return v8::Date::New(
+ v8::Isolate::GetCurrent()->GetCurrentContext(),
292
+ 1000 * time)
293
+ .ToLocalChecked();
294
+ })
295
#define NODE_UNIXTIME_V8 node::NODE_UNIXTIME_V8
296
NODE_DEPRECATED("Use v8::Date::ValueOf() directly",
297
inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
0 commit comments