diff options
Diffstat (limited to 'libdeno/exceptions.cc')
-rw-r--r-- | libdeno/exceptions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdeno/exceptions.cc b/libdeno/exceptions.cc index 081e61060..0d7bbed8b 100644 --- a/libdeno/exceptions.cc +++ b/libdeno/exceptions.cc @@ -155,7 +155,7 @@ void HandleException(v8::Local<v8::Context> context, v8::Isolate* isolate = context->GetIsolate(); DenoIsolate* d = DenoIsolate::FromIsolate(isolate); std::string json_str = EncodeExceptionAsJSON(context, exception); - CHECK(d != nullptr); + CHECK_NOT_NULL(d); d->last_exception_ = json_str; } @@ -164,7 +164,7 @@ void HandleExceptionMessage(v8::Local<v8::Context> context, v8::Isolate* isolate = context->GetIsolate(); DenoIsolate* d = DenoIsolate::FromIsolate(isolate); std::string json_str = EncodeMessageAsJSON(context, message); - CHECK(d != nullptr); + CHECK_NOT_NULL(d); d->last_exception_ = json_str; } |