aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Derrick Farris <mr.dcfarris@gmail.com> 2023-02-13 11:42:49 -0600
committerGravatar GitHub <noreply@github.com> 2023-02-13 09:42:49 -0800
commitaf3f42e63070ae7b0111c1426f858e74fd71816f (patch)
tree162d99aef7d971f82a6166da8e0108196ebbe785
parent37186f4b0a6b97ffb3ac1ec65ddc2146126b4545 (diff)
downloadbun-af3f42e63070ae7b0111c1426f858e74fd71816f.tar.gz
bun-af3f42e63070ae7b0111c1426f858e74fd71816f.tar.zst
bun-af3f42e63070ae7b0111c1426f858e74fd71816f.zip
fix(FormData): add string literal operator (#2064)
-rw-r--r--src/bun.js/bindings/webcore/JSDOMFormData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/webcore/JSDOMFormData.cpp b/src/bun.js/bindings/webcore/JSDOMFormData.cpp
index 3578db7ff..cdbe5c56e 100644
--- a/src/bun.js/bindings/webcore/JSDOMFormData.cpp
+++ b/src/bun.js/bindings/webcore/JSDOMFormData.cpp
@@ -150,7 +150,7 @@ template<> EncodedJSValue JSC_HOST_CALL_ATTRIBUTES JSDOMFormDataDOMConstructor::
ASSERT(castedThis);
auto* context = castedThis->scriptExecutionContext();
if (UNLIKELY(!context))
- return throwConstructorScriptExecutionContextUnavailableError(*lexicalGlobalObject, throwScope, "FormData");
+ return throwConstructorScriptExecutionContextUnavailableError(*lexicalGlobalObject, throwScope, "FormData"_s);
auto object = DOMFormData::create(context);
if constexpr (IsExceptionOr<decltype(object)>)
RETURN_IF_EXCEPTION(throwScope, {});
@@ -504,7 +504,7 @@ static inline JSC::EncodedJSValue jsDOMFormDataPrototypeFunction_toJSONBody(JSC:
obj = constructEmptyObject(lexicalGlobalObject);
}
- obj->putDirect(vm, vm.propertyNames->toStringTagSymbol, jsString(vm, "FormData"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
+ obj->putDirect(vm, vm.propertyNames->toStringTagSymbol, jsString(vm, "FormData"_s), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
auto iter = impl.items();
WTF::HashSet<String> seenKeys;