lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2.01k stars 43 forks source link

Only output from last statement is visible #565

Closed kevinboosten closed 1 year ago

kevinboosten commented 1 year ago

If I put multiple statements in my editor, only the last statement is visible on the output screen.

image

lukehaas commented 1 year ago

@kevinboosten This could be due to runtime values being toggled off in your settings:

Screenshot 2023-06-08 at 14 15 53

kevinboosten commented 1 year ago

Ah excellent 😁 I thought I had already toggled everything, but I needed to disable "Enable top-level await" in order to toggle that setting. Now it works.

Thanks 🤝.

image

lukehaas commented 1 year ago

Thanks, @kevinboosten. Yeah, it's unfortunate that those two options can't work together.