summaryrefslogtreecommitdiff
path: root/src/async_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r--src/async_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 8f20d4f837..61455b2fcc 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -206,7 +206,7 @@ PromiseWrap* PromiseWrap::New(Environment* env,
obj->SetInternalField(PromiseWrap::kIsChainedPromiseField,
parent_wrap != nullptr ? v8::True(env->isolate())
: v8::False(env->isolate()));
- CHECK_EQ(promise->GetAlignedPointerFromInternalField(0), nullptr);
+ CHECK_NULL(promise->GetAlignedPointerFromInternalField(0));
promise->SetInternalField(0, obj);
return new PromiseWrap(env, obj, silent);
}