diff --git a/src/util.h b/src/util.h index 1f7c7580a7e036..056f8da6e2c0ae 100644 --- a/src/util.h +++ b/src/util.h @@ -772,6 +772,7 @@ class PersistentToLocal { template static inline v8::Local Strong( const v8::PersistentBase& persistent) { + DCHECK(!persistent.IsWeak()); return *reinterpret_cast*>( const_cast*>(&persistent)); }