DanielXMoore / Civet

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

Pipe after implicit object is incorrect #1280

Closed STRd6 closed 1 month ago

STRd6 commented 5 months 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"))})