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

Commit bf06b64

Browse files
committed
fix node::AtExit() crash
1 parent 45321d4 commit bf06b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4698,7 +4698,7 @@ static uv_key_t thread_local_env;
46984698

46994699

47004700
void AtExit(void (*cb)(void* arg), void* arg) {
4701-
auto env = static_cast<Environment*>(uv_key_get(&thread_local_env));
4701+
auto env = node::Environment::GetCurrent(v8::Isolate::GetCurrent());
47024702
AtExit(env, cb, arg);
47034703
}
47044704

0 commit comments

Comments
 (0)