aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Derrick Farris <mr.dcfarris@gmail.com> 2023-02-13 12:04:54 -0600
committerGravatar GitHub <noreply@github.com> 2023-02-13 13:04:54 -0500
commitef75cd46588ab54e14ad286000ef0357a9b76298 (patch)
tree7bd85c20bf9611fa53e1f96e964742a76610cfe6 /src/bun.js
parentaf3f42e63070ae7b0111c1426f858e74fd71816f (diff)
downloadbun-ef75cd46588ab54e14ad286000ef0357a9b76298.tar.gz
bun-ef75cd46588ab54e14ad286000ef0357a9b76298.tar.zst
bun-ef75cd46588ab54e14ad286000ef0357a9b76298.zip
fix(FormData): make String explicit, thanks @dylan-conway (#2065)
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/bindings/webcore/JSDOMFormData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/webcore/JSDOMFormData.cpp b/src/bun.js/bindings/webcore/JSDOMFormData.cpp
index cdbe5c56e..e221288c1 100644
--- a/src/bun.js/bindings/webcore/JSDOMFormData.cpp
+++ b/src/bun.js/bindings/webcore/JSDOMFormData.cpp
@@ -504,7 +504,7 @@ static inline JSC::EncodedJSValue jsDOMFormDataPrototypeFunction_toJSONBody(JSC:
obj = constructEmptyObject(lexicalGlobalObject);
}
- obj->putDirect(vm, vm.propertyNames->toStringTagSymbol, jsString(vm, "FormData"_s), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
+ obj->putDirect(vm, vm.propertyNames->toStringTagSymbol, jsString(vm, String("FormData"_s)), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
auto iter = impl.items();
WTF::HashSet<String> seenKeys;