Closed
Description
TypeScript Version: 3.2.0-dev.201xxxxx
Search Terms: worker new url, worker constructor
Code
new Worker(new URL(""))
Expected behavior: Compiles fine, as it is valid per the spec
Actual behavior:
[ts] Argument of type 'URL' is not assignable to parameter of type 'string'.
Playground Link: http://www.typescriptlang.org/play/#src=new%20Worker(new%20URL(%22%22))%3B
Related Issues: #15338, #15246 and was recently updated in #28136 as well