commit | 93e0c6ae8997e0ded6013078efd0ccc652ca2595 | [log] [tgz] |
---|---|---|
author | ZYSzys <[email protected]> | Mon Feb 04 07:38:51 2019 |
committer | Daniel Bevenius <[email protected]> | Thu Feb 07 06:22:38 2019 |
tree | 335126a828eb71730196f0df21998a3eaf0f5328 | |
parent | 2a212549dc0517f1700db90d66ed5cf09e9513b8 [diff] [blame] |
src: use NULL check macros to check nullptr PR-URL: https://github.com/nodejs/node/pull/25916 Refs: https://github.com/nodejs/node/pull/20914 Reviewed-By: Masashi Hirano <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]>
diff --git a/src/node.cc b/src/node.cc index dfd691f..7d9075b 100644 --- a/src/node.cc +++ b/src/node.cc
@@ -336,7 +336,7 @@ MaybeLocal<Value> StartExecution(Environment* env, const char* main_script_id) { EscapableHandleScope scope(env->isolate()); - CHECK_NE(main_script_id, nullptr); + CHECK_NOT_NULL(main_script_id); std::vector<Local<String>> parameters = { env->process_string(),