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

Commit

Permalink
fix node::AtExit() crash
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 23, 2018
1 parent 45321d4 commit bf06b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4698,7 +4698,7 @@ static uv_key_t thread_local_env;


void AtExit(void (*cb)(void* arg), void* arg) {
auto env = static_cast<Environment*>(uv_key_get(&thread_local_env));
auto env = node::Environment::GetCurrent(v8::Isolate::GetCurrent());
AtExit(env, cb, arg);
}

Expand Down

0 comments on commit bf06b64

Please sign in to comment.