diff options
Diffstat (limited to 'include/v8-util.h')
-rw-r--r-- | include/v8-util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/v8-util.h b/include/v8-util.h index 8133fdd4..a04a5e84 100644 --- a/include/v8-util.h +++ b/include/v8-util.h @@ -6,6 +6,7 @@ #define V8_UTIL_H_ #include "v8.h" // NOLINT(build/include) +#include <assert.h> #include <map> #include <vector> @@ -210,7 +211,7 @@ class PersistentValueMapBase { * key. */ void RegisterExternallyReferencedObject(K& key) { - DCHECK(Contains(key)); + assert(Contains(key)); V8::RegisterExternallyReferencedObject( reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key))), reinterpret_cast<internal::Isolate*>(GetIsolate())); |