src: fix for Electron 29
This commit is contained in:
parent
98bd9063a2
commit
0fd1a2745b
@ -18,7 +18,7 @@
|
||||
#include <uv.h>
|
||||
#include "signal-tokenizer.h"
|
||||
#line 31 "./src/util/macros.lzz"
|
||||
template <class T> using CopyablePersistent = v8::Persistent<T, v8::CopyablePersistentTraits<T>>;
|
||||
template <class T> using CopyablePersistent = v8::Global<T>;
|
||||
#line 36 "./src/util/binder.lzz"
|
||||
static bool IsPlainObject(v8::Isolate* isolate, v8::Local<v8::Object> obj);
|
||||
#define LZZ_INLINE inline
|
||||
|
||||
@ -28,7 +28,7 @@ inline v8::Local<v8::String> InternalizedFromLatin1(v8::Isolate* isolate, const
|
||||
}
|
||||
|
||||
#hdr
|
||||
template <class T> using CopyablePersistent = v8::Persistent<T, v8::CopyablePersistentTraits<T>>;
|
||||
template <class T> using CopyablePersistent = v8::Global<T>;
|
||||
#end
|
||||
inline void SetFrozen(v8::Isolate* isolate, v8::Local<v8::Context> ctx, v8::Local<v8::Object> obj, CopyablePersistent<v8::String>& key, v8::Local<v8::Value> value) {
|
||||
obj->DefineOwnProperty(ctx, key.Get(isolate), value, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly)).FromJust();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user