module: allow overriding linked requests for a ModuleWrap · nodejs/node@389a24b · GitHub
Skip to content

Commit 389a24b

Browse files
legendecastargos
authored andcommitted
module: allow overriding linked requests for a ModuleWrap
This allows overriding linked requests for a `ModuleWrap`. The `statusOverride` in `vm.SourceTextModule` could call `moduleWrap.link` a second time when `statusOverride` of `linking` is set to undefined. Overriding of linked requests should be no harm but better to be avoided. However, this will require a follow-up fix on `statusOverride` in `vm.SourceTextModule`. PR-URL: #59527 Fixes: #59480 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent e2b6bdc commit 389a24b

2 files changed

Lines changed: 82 additions & 10 deletions

File tree

src/module_wrap.cc

Lines changed: 0 additions & 10 deletions
Lines changed: 82 additions & 0 deletions

0 commit comments

Comments
 (0)