| Index: include/v8-util.h
|
| diff --git a/include/v8-util.h b/include/v8-util.h
|
| index 8133fdd49dcf4fac4e340997e4cac21c7db70806..a04a5e84f80dc47e05cd65757e0fe0da1d80dbf5 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()));
|
|
|