News for hackers. Stuff that matters.
Re:Bun v1.0.0 by jcheng on Friday September 08, 2023 @07:03PM (#37440373)
For 1), what about requiring an ES module that doesn’t itself use top-level await, but imports another ES module that uses top-level await?
Re:Bun v1.0.0 by Jarred on Friday September 08, 2023 @07:16PM (#37440475)
That throws since we cannot make it synchronous. It works by reading the internal state of the Promise and getting the value out of it if the Promise is fulfilled.