DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

Pipe after implicit object is incorrect #1280

Open STRd6 opened 3 weeks ago

STRd6 commented 3 weeks ago
fetch(url)
  |> await
  |> .arrayBuffer()
  |> await 
  |> new Blob [.], type: "application/javascript"
  |> URL.createObjectURL
  |> new Worker

This has an unintuitive parse where the value of the implicit object becomes piped instead of the entire line:

new Blob([(await (await fetch(url)).arrayBuffer())], {type: new Worker(URL.createObjectURL("application/javascript"))})