node icon indicating copy to clipboard operation
node copied to clipboard

async_hooks: add an InactiveAsyncContextFrame class

Open bengl opened this issue 6 months ago • 9 comments

This gives a class prototype for AsyncContextFrame that contains the required methods, so that when we swap the prototype, ActiveAsyncContextFrame methods are used instead. Previously, the methods were defined in AsyncContextFrame, so swapping the prototype didn't swap those static methods.

Also, make the ActiveAsyncContextFrame extend from Map.

Fixes: https://github.com/nodejs/node/issues/54503

bengl avatar Aug 22 '24 20:08 bengl