module: introduce defaultModuleName in module.js · nodejs/node@678b754 · GitHub
Skip to content

Commit 678b754

Browse files
danbevMylesBorins
authored andcommitted
module: introduce defaultModuleName in module.js
This commit adds a constant named defaultModuleName to avoid duplicating it in the Module constructor function. PR-URL: #20709 Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d5db576 commit 678b754

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/internal/vm/module.js

Lines changed: 4 additions & 3 deletions

0 commit comments

Comments
 (0)