Unverified Commit 31b31a3c authored by Anna Henningsen's avatar Anna Henningsen
Browse files

src: harden running native `SetImmediate()`s slightly

Prevent mistakes like the one fixed by the previous commit
by destroying the callback immediately after it has been called.

PR-URL: https://github.com/nodejs/node/pull/31468
Refs: https://github.com/nodejs/node/pull/31386


Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarGireesh Punathil <gpunathi@in.ibm.com>
parent 10468168
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment