TypeScript/tests/cases/compiler/webworkerIterable.ts
Orta Therox aa2756a5d7
Updates Dom lib with TSJS changes, adding a new library for webworker iterable (#40500)
* Updates Dom lib with TSJS changes, adding a new library for webworker iterable

Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>

* Fixes tests

Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>
2020-09-11 15:36:00 -04:00

13 lines
253 B
TypeScript

// @skipLibCheck: true
// @lib: es2020,webworker,webworker.iterable
// @target: es2020
// This API is only in webworker
importScripts("")
// This should not raise a compiler error
const f = new FormData()
for (const element of f) {
element.length
}