We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e865418 commit 0b39975Copy full SHA for 0b39975
src/node.h
@@ -312,8 +312,11 @@ NODE_EXTERN struct uv_loop_s* GetCurrentEventLoop(v8::Isolate* isolate);
312
/* Converts a unixtime to V8 Date */
313
NODE_DEPRECATED("Use v8::Date::New() directly",
314
inline v8::Local<v8::Value> NODE_UNIXTIME_V8(double time) {
315
- return v8::Date::New(v8::Isolate::GetCurrent(), 1000 * time);
316
-})
+ return v8::Date::New(
+ v8::Isolate::GetCurrent()->GetCurrentContext(),
317
+ 1000 * time)
318
+ .ToLocalChecked();
319
+ })
320
#define NODE_UNIXTIME_V8 node::NODE_UNIXTIME_V8
321
NODE_DEPRECATED("Use v8::Date::ValueOf() directly",
322
inline double NODE_V8_UNIXTIME(v8::Local<v8::Date> date) {
0 commit comments