mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
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:
parent
66cea39067
commit
e2d76278bf
5 changed files with 12 additions and 12 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue