Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions runtime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions test/js/index-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
1 change: 1 addition & 0 deletions test/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
1 change: 1 addition & 0 deletions test/js/non-call-echo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const nonCallEcho = `echo`;
1 change: 1 addition & 0 deletions test/output/nonCallEcho.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo