We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6b5e5 commit 4b01d8cCopy full SHA for 4b01d8c
src/node_api.cc
@@ -12,7 +12,6 @@
12
#include <node_object_wrap.h>
13
#include <string.h>
14
#include <algorithm>
15
-#include <cassert>
16
#include <cmath>
17
#include <vector>
18
#include "uv.h"
@@ -852,7 +851,7 @@ napi_status napi_get_last_error_info(napi_env env,
852
851
static_assert(
853
node::arraysize(error_messages) == napi_escape_called_twice + 1,
854
"Count of error messages must match count of error values");
855
- assert(env->last_error.error_code <= napi_escape_called_twice);
+ CHECK_LE(env->last_error.error_code, napi_escape_called_twice);
856
857
// Wait until someone requests the last error information to fetch the error
858
// message string
0 commit comments