File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -684,6 +684,11 @@ class Global : public PersistentBase<T> {
684684 other._weakWrapper = nullptr ;
685685 }
686686
687+ template <class S >
688+ static Global<S> New (Isolate* isolate, Local<S> that) {
689+ return Global<S>(isolate, that);
690+ }
691+
687692 V8_INLINE ~Global () { this ->Reset (); }
688693
689694 template <class S >
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ inline v8::Local<v8::Float64Array> Environment::fs_stats_field_array() const {
389389
390390inline void Environment::set_fs_stats_field_array (v8::Local<v8::Float64Array> fields) {
391391 CHECK_EQ (fs_stats_field_array_.IsEmpty (), true ); // Should be set only once.
392- fs_stats_field_array_ = v8::Global<v8::Float64Array>::Global (isolate_, fields);
392+ fs_stats_field_array_ = v8::Global<v8::Float64Array>::New (isolate_, fields);
393393}
394394
395395inline Environment* Environment::from_cares_timer_handle (uv_timer_t * handle) {
You can’t perform that action at this time.
0 commit comments