mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
feat: add module.parent (#24333)
This field is deprecated but still used by the ecosystem, so let's just support it.
This commit is contained in:
parent
a1ff1a453c
commit
700cd200c1
1 changed files with 1 additions and 0 deletions
|
@ -475,6 +475,7 @@ function Module(id = "", parent) {
|
|||
updateChildren(parent, this, false);
|
||||
this.filename = null;
|
||||
this.loaded = false;
|
||||
this.parent = parent;
|
||||
this.children = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue