fix replacing node:module._resolveFilename not passing the parent module (#7993)

* fix replacing node:module._resolveFilename

* add a test
This commit is contained in:
Meghan Denny
2024-01-05 00:36:07 -08:00
committed by GitHub
parent 39ab26a663
commit 89ec2fcb35
6 changed files with 57 additions and 14 deletions

View File

@@ -1087,7 +1087,7 @@ pub const String = extern struct {
}
pub fn eqlUTF8(this: String, other: []const u8) bool {
return this.toZigString().eql(ZigString.initUTF8(other));
return this.toZigString().eql(ZigString.fromUTF8(other));
}
pub fn eql(this: String, other: String) bool {