TypeScript/tests/baselines/reference/webworkerIterable.types
Orta Therox b9e952be1d
Migrate over 4.4 lib dom and webworker (#45324)
* 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>
2021-08-04 17:14:24 -07:00

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
}