Skip to content

Commit 898016f

Browse files
authored
Merge pull request #119 from boingoing/fix_napi_get_current_env
Fix definition of napi_get_current_env
2 parents d024d3e + 8678ec3 commit 898016f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/node_jsrtapi.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,9 @@ napi_status napi_set_last_error(JsErrorCode jsError, void* engine_reserved = nul
316316
}
317317

318318
//Stub for now
319-
napi_env napi_get_current_env() {
320-
return nullptr;
319+
napi_status napi_get_current_env(napi_env* e) {
320+
*e = nullptr;
321+
return napi_ok;
321322
}
322323

323324
napi_status napi_create_function(napi_env e, napi_callback cb, void* data, napi_value* result) {

0 commit comments

Comments
 (0)