diff --git a/runtime/index.js b/runtime/index.js index 4a65bca..08bf95d 100644 --- a/runtime/index.js +++ b/runtime/index.js @@ -117,8 +117,8 @@ export function createRuntime(initialCode) { function observer(state) { return { pending() { - clear(state); - if (state.doc) echo(state, "Pending…", {quote: false}); + // clear(state); + // if (state.doc) echo(state, "Pending…", {quote: false}); }, fulfilled() { // Before blocks are fulfilled, their position might be changed or @@ -264,7 +264,6 @@ export function createRuntime(initialCode) { node.state = state; const v = main.variable(observer(state), {shadow: {}}); if (inputs.includes("echo")) { - state.doc = true; let docVersion = -1; const vd = new v.constructor(2, v._module); vd.define( diff --git a/test/js/index-tests.js b/test/js/index-tests.js index a6fc531..c94126d 100644 --- a/test/js/index-tests.js +++ b/test/js/index-tests.js @@ -7,3 +7,4 @@ export {runtimeError} from "./runtime-error.js"; export {syntaxError2} from "./syntax-error2.js"; export {syntaxError3} from "./syntax-error3.js"; export {syntaxError4} from "./syntax-error4.js"; +export {nonCallEcho} from "./non-call-echo.js"; diff --git a/test/js/index.js b/test/js/index.js index 13fd5a6..00c21c3 100644 --- a/test/js/index.js +++ b/test/js/index.js @@ -16,3 +16,4 @@ export {jsDocString} from "./js-doc-string.js"; export {commentLink} from "./comment-link.js"; export {syntaxError3} from "./syntax-error3.js"; export {syntaxError4} from "./syntax-error4.js"; +export {nonCallEcho} from "./non-call-echo.js"; diff --git a/test/js/non-call-echo.js b/test/js/non-call-echo.js new file mode 100644 index 0000000..e96dc27 --- /dev/null +++ b/test/js/non-call-echo.js @@ -0,0 +1 @@ +export const nonCallEcho = `echo`; diff --git a/test/output/nonCallEcho.js b/test/output/nonCallEcho.js new file mode 100644 index 0000000..dccbe8e --- /dev/null +++ b/test/output/nonCallEcho.js @@ -0,0 +1 @@ +echo \ No newline at end of file