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

Commit 345376f

Browse files
authored
Merge pull request #199 from mrkmarron/xplat-linuxfix
Fix for build break in PR #194. PR-URL: mrkmarron@fafa155
2 parents e170da8 + fafa155 commit 345376f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

deps/chakrashim/include/v8.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

src/env-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ inline v8::Local<v8::Float64Array> Environment::fs_stats_field_array() const {
389389

390390
inline 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

395395
inline Environment* Environment::from_cares_timer_handle(uv_timer_t* handle) {

0 commit comments

Comments
 (0)