mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 11:21:51 +00:00
Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x
This commit is contained in:
parent
19f30f5b1c
commit
988691d2dc
@ -37,8 +37,14 @@ namespace v8 {
|
||||
typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
|
||||
static const bool kResetInDestructor = true;
|
||||
template<class S, class M>
|
||||
#if PHP_V8_API_VERSION >= 3021015
|
||||
static V8_INLINE void Copy(const Persistent<S, M>& source,
|
||||
CopyablePersistent* dest)
|
||||
#else
|
||||
V8_INLINE(static void Copy(const Persistent<S, M>& source,
|
||||
CopyablePersistent* dest)) {
|
||||
CopyablePersistent* dest))
|
||||
#endif
|
||||
{
|
||||
// do nothing, just allow copy
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user