| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2c28e00 commit ff7cc8f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -760,6 +760,7 @@ class PersistentToLocal { | |||
| 760 | 760 | template <class TypeName> | |
| 761 | 761 | static inline v8::Local<TypeName> Strong( | |
| 762 | 762 | const v8::PersistentBase<TypeName>& persistent) { | |
| 763 | + DCHECK(!persistent.IsWeak()); | ||
| 763 | 764 | return *reinterpret_cast<v8::Local<TypeName>*>( | |
| 764 | 765 | const_cast<v8::PersistentBase<TypeName>*>(&persistent)); | |
| 765 | 766 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments