* Brings across 4.4 DOM + Web Worker changes * Adds tests * Incorporate #1092 and #1093 from TypeScript-DOM-lib-generator * update baselines Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
24 lines
551 B
Plaintext
24 lines
551 B
Plaintext
=== tests/cases/compiler/webworkerIterable.ts ===
|
|
// This API is only in webworker
|
|
importScripts("")
|
|
>importScripts("") : void
|
|
>importScripts : (...urls: (string | URL)[]) => void
|
|
>"" : ""
|
|
|
|
// This should not raise a compiler error
|
|
const f = new FormData()
|
|
>f : FormData
|
|
>new FormData() : FormData
|
|
>FormData : { new (): FormData; prototype: FormData; }
|
|
|
|
for (const element of f) {
|
|
>element : [string, FormDataEntryValue]
|
|
>f : FormData
|
|
|
|
element.length
|
|
>element.length : 2
|
|
>element : [string, FormDataEntryValue]
|
|
>length : 2
|
|
}
|
|
|