We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f5a56 commit 62493e9Copy full SHA for 62493e9
src/util.h
@@ -772,6 +772,7 @@ class PersistentToLocal {
772
template <class TypeName>
773
static inline v8::Local<TypeName> Strong(
774
const v8::PersistentBase<TypeName>& persistent) {
775
+ DCHECK(!persistent.IsWeak());
776
return *reinterpret_cast<v8::Local<TypeName>*>(
777
const_cast<v8::PersistentBase<TypeName>*>(&persistent));
778
}
0 commit comments