diff --git a/src/better_sqlite3.hpp b/src/better_sqlite3.hpp index 7d9ff75..609d2c2 100644 --- a/src/better_sqlite3.hpp +++ b/src/better_sqlite3.hpp @@ -18,7 +18,7 @@ #include #include "signal-tokenizer.h" #line 31 "./src/util/macros.lzz" -template using CopyablePersistent = v8::Persistent>; +template using CopyablePersistent = v8::Global; #line 36 "./src/util/binder.lzz" static bool IsPlainObject(v8::Isolate* isolate, v8::Local obj); #define LZZ_INLINE inline diff --git a/src/util/macros.lzz b/src/util/macros.lzz index c526f51..fd2a2a5 100644 --- a/src/util/macros.lzz +++ b/src/util/macros.lzz @@ -28,7 +28,7 @@ inline v8::Local InternalizedFromLatin1(v8::Isolate* isolate, const } #hdr -template using CopyablePersistent = v8::Persistent>; +template using CopyablePersistent = v8::Global; #end inline void SetFrozen(v8::Isolate* isolate, v8::Local ctx, v8::Local obj, CopyablePersistent& key, v8::Local value) { obj->DefineOwnProperty(ctx, key.Get(isolate), value, static_cast(v8::DontDelete | v8::ReadOnly)).FromJust();