diff options
Diffstat (limited to 'src/bun.js/bindings/bindings.zig')
-rw-r--r-- | src/bun.js/bindings/bindings.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/bindings/bindings.zig b/src/bun.js/bindings/bindings.zig index 54d54f644..ebe5f83ed 100644 --- a/src/bun.js/bindings/bindings.zig +++ b/src/bun.js/bindings/bindings.zig @@ -295,14 +295,14 @@ pub const ZigString = extern struct { } pub fn eqlComptime(this: ZigString, comptime other: []const u8) bool { - if (this.len != other.len) - return false; - if (this.is16Bit()) { return strings.eqlComptimeUTF16(this.utf16SliceAligned(), other); } if (comptime strings.isAllASCIISimple(other)) { + if (this.len != other.len) + return false; + return strings.eqlComptimeIgnoreLen(this.slice(), other); } |