rails / execjs

Run JavaScript code from Ruby
MIT License
538 stars 282 forks source link

Use Bun.write(Bun.stdout, '') for output in Bun executor #136

Closed tomocrafter closed 1 year ago

tomocrafter commented 1 year ago

I encountered this issue in bun https://github.com/oven-sh/bun/issues/6573 and I tried using Bun.write instead of process.stdout.write then I realized that above issue does not occurs. So I replaced with Bun.write to avoid this issue and potential performance optimize since Bun.write uses faster system call than normal one.