Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_errors.h')
-rw-r--r--src/node_errors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_errors.h b/src/node_errors.h
index 61d9b882212..4d6e1ab42d4 100644
--- a/src/node_errors.h
+++ b/src/node_errors.h
@@ -70,7 +70,7 @@ void FatalException(v8::Isolate* isolate,
v8::Exception::type(js_msg)->ToObject( \
isolate->GetCurrentContext()).ToLocalChecked(); \
e->Set(isolate->GetCurrentContext(), OneByteString(isolate, "code"), \
- js_code).FromJust(); \
+ js_code).Check(); \
return e; \
} \
inline void THROW_ ## code(v8::Isolate* isolate, const char* message) { \