Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
n-api: support napi_fatal_error
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarnung committed Jul 21, 2017
1 parent 02bb58e commit 51451f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/node_api_jsrt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,9 @@ napi_status napi_set_last_error(JsErrorCode jsError, void* engine_reserved) {
return status;
}

// Stub for now
napi_status napi_get_current_env(napi_env* e) {
*e = nullptr;
return napi_ok;
NAPI_NO_RETURN void napi_fatal_error(const char* location,
const char* message) {
node::FatalError(location, message);
}

napi_status napi_create_function(napi_env env,
Expand Down

0 comments on commit 51451f6

Please sign in to comment.