arktypeio/arktype

FormData.parse broken in rc.0

codehz opened this issue ยท 2 comments

Report a bug

๐Ÿ”Ž Search Terms

parse.formData
FormData
FormData.parse

๐Ÿงฉ Context

  • ArkType version: rc.0
  • TypeScript version (5.1+): (doesn't matter, it is a runtime error)
  • Other context you think may be relevant (JS flavor, OS, etc.): browser (chrome/safari)

๐Ÿง‘โ€๐Ÿ’ป Repro

type("FormData.parse")(new FormData())

got Illegal invocation in Chrome, Can only call FormData.entries on instances of FormData in Safari

Might be related to deep clone changes, see also #1098

seems works in rc.2