mirror of
https://github.com/denoland/deno
synced 2024-06-28 14:35:15 +00: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
|
@ -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 New Issue
Block a user