add vanilla repl build

This commit is contained in:
Felix Roos 2022-11-06 16:03:49 +01:00
parent 09045d5387
commit 5f985f359b
7 changed files with 107 additions and 1 deletions

View file

@ -20,4 +20,7 @@ const { evaluate } = repl({
getTime: () => ctx.currentTime,
transpiler: shapeshifter,
});
document.getElementById('start').addEventListener('click', () => evaluate(input.value));
document.getElementById('start').addEventListener('click', () => {
ctx.resume();
evaluate(input.value);
});