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:
snek 2024-06-25 11:17:35 -07:00 committed by GitHub
parent a1ff1a453c
commit 700cd200c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,6 +475,7 @@ function Module(id = "", parent) {
updateChildren(parent, this, false);
this.filename = null;
this.loaded = false;
this.parent = parent;
this.children = [];
}