Skip to content

Commit bd52abe

Browse files
committed
WASM REPL: reset the python worker after a program exits so that we can run again.
1 parent aab9ccc commit bd52abe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tools/wasm/emscripten/web_example/python.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@
535535

536536
const finishedCallback = () => {
537537
programRunning(false);
538+
pythonWorkerManager.reset();
538539
};
539540

540541
const pythonWorkerManager = new WorkerManager(

0 commit comments

Comments
 (0)