diff --git a/worker/src/formdata.rs b/worker/src/formdata.rs index 499942d5..a322b470 100644 --- a/worker/src/formdata.rs +++ b/worker/src/formdata.rs @@ -128,6 +128,12 @@ impl From, &dyn AsRef<&str>>> for FormData { } } +impl From for wasm_bindgen::JsValue { + fn from(val: FormData) -> Self { + val.0.into() + } +} + /// A [File](https://developer.mozilla.org/en-US/docs/Web/API/File) representation used with /// `FormData`. pub struct File(web_sys::File);