diff --git a/doc/api/addons.md b/doc/api/addons.md index 4d29b718ab9dcd..d1c9036f54183d 100644 --- a/doc/api/addons.md +++ b/doc/api/addons.md @@ -1090,10 +1090,10 @@ static void sanity_check(void*) { } void init(Local exports) { - AtExit(sanity_check); AtExit(at_exit_cb2, cookie); AtExit(at_exit_cb2, cookie); AtExit(at_exit_cb1, exports->GetIsolate()); + AtExit(sanity_check); } NODE_MODULE(addon, init)