Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
src: Fix for build break
Browse files Browse the repository at this point in the history
Fixes: #194
PR-URL: #199
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
  • Loading branch information
mrkmarron authored and kunalspathak committed Mar 24, 2017
1 parent a361d49 commit a35216f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ class Global : public PersistentBase<T> {
other._weakWrapper = nullptr;
}

template <class S>
static Global<S> New(Isolate* isolate, Local<S> that) {
return Global<S>(isolate, that);
}

V8_INLINE ~Global() { this->Reset(); }

template <class S>
Expand Down
2 changes: 1 addition & 1 deletion src/env-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ inline v8::Local<v8::Float64Array> Environment::fs_stats_field_array() const {

inline void Environment::set_fs_stats_field_array(v8::Local<v8::Float64Array> fields) {
CHECK_EQ(fs_stats_field_array_.IsEmpty(), true); // Should be set only once.
fs_stats_field_array_ = v8::Global<v8::Float64Array>::Global(isolate_, fields);
fs_stats_field_array_ = v8::Global<v8::Float64Array>::New(isolate_, fields);
}

inline Environment* Environment::from_cares_timer_handle(uv_timer_t* handle) {
Expand Down

0 comments on commit a35216f

Please sign in to comment.