diff options
author | snek <snek@deno.com> | 2024-06-25 11:17:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 11:17:35 -0700 |
commit | 700cd200c18d4a54f98c3633b898236038e8e550 (patch) | |
tree | 762dfaf95349fd3ead7c329d04191e2a25ace4e1 /ext/node/polyfills/01_require.js | |
parent | a1ff1a453c309c2f14c64ec31a3c43ef784781e2 (diff) |
feat: add module.parent (#24333)
This field is deprecated but still used by the ecosystem, so let's just
support it.
Diffstat (limited to 'ext/node/polyfills/01_require.js')
-rw-r--r-- | ext/node/polyfills/01_require.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index 10e89b339..bdd91e0b4 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -475,6 +475,7 @@ function Module(id = "", parent) { updateChildren(parent, this, false); this.filename = null; this.loaded = false; + this.parent = parent; this.children = []; } |