--repl mode bugs · Issue #659 · squint-cljs/squint (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@borkdude

Description

@borkdude

return too early and missing new line:

$ ./node_cli.js --show --repl -e '(def x 1) (js-await 1) (def x 2)'
(async function() { var squint_core = await import('squint-cljs/core.js');
globalThis.user = globalThis.user || {};
var x = 1;
globalThis.user.x = x;
return (await 1)var x = 2;
globalThis.user.x = x;
 })()
An error occurred when calling (squint.internal.cli/init)
undefined:5
return (await 1)var x = 2;