| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7d35fa7 commit db4b192
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -772,6 +772,7 @@ class PersistentToLocal { | |||
| 772 | 772 | template <class TypeName> | |
| 773 | 773 | static inline v8::Local<TypeName> Strong( | |
| 774 | 774 | const v8::PersistentBase<TypeName>& persistent) { | |
| 775 | + DCHECK(!persistent.IsWeak()); | ||
| 775 | 776 | return *reinterpret_cast<v8::Local<TypeName>*>( | |
| 776 | 777 | const_cast<v8::PersistentBase<TypeName>*>(&persistent)); | |
| 777 | 778 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments