From 176552f1ae472280d25cb2babc650520e06418fd Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Wed, 5 Feb 2025 15:49:55 -0800 Subject: [PATCH] Update src/bun.js/bindings/bindings.cpp Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> --- src/bun.js/bindings/bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp index c16baaf7fe9453..daa7dc0b5af7ff 100644 --- a/src/bun.js/bindings/bindings.cpp +++ b/src/bun.js/bindings/bindings.cpp @@ -1218,7 +1218,7 @@ std::optional specialObjectsDequal(JSC__JSGlobalObject* globalObject, Mark // `.cause` is non-enumerable, so it must be checked explicitly. // note that an undefined cause is different than a missing cause in // strict mode. - const Identifier causeIdent = Identifier::fromLatin1(vm, "cause"); + const Identifier causeIdent = Identifier::fromString(vm, "cause"_s); const PropertyName cause(causeIdent); if constexpr (isStrict) { if (left->hasProperty(globalObject, cause) != right->hasProperty(globalObject, cause)) {