Skip to content

Commit

Permalink
fix(init): workaround node promise destroyed bug (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman authored and naugtur committed May 16, 2022
1 parent e5f40e6 commit cf37f0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/init/src/node-async_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ const getAsyncHookSymbolPromiseProtoDesc = (
if (Object.isExtensible(this)) {
Object.defineProperty(this, symbol, {
value,
writable: false,
// Workaround a Node bug setting the destroyed sentinel multiple times
writable: disallowGet,
configurable: false,
enumerable: false,
});
Expand Down

0 comments on commit cf37f0f

Please sign in to comment.