Replace macros to check nullptr (#1674)

This replaces CHECK_EQ/CHECK_NE with CHECK_NULL/CHECK_NOT_NULL to check nullptr.
These macros are implemented in V8.
Refs: https://github.com/denoland/deno_third_party/blob/master/v8/src/base/logging.h#L312
This commit is contained in:
Masashi Hirano 2019-02-05 01:53:40 +09:00 committed by Ryan Dahl
parent 66cea39067
commit e2d76278bf
5 changed files with 12 additions and 12 deletions

View file

@ -79,7 +79,7 @@ deno::DenoIsolate* unwrap(Deno* d_) {
deno_buf deno_get_snapshot(Deno* d_) {
auto* d = unwrap(d_);
CHECK_NE(d->snapshot_creator_, nullptr);
CHECK_NOT_NULL(d->snapshot_creator_);
d->ClearModules();
d->context_.Reset();