We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90efabb commit 9d8e78cCopy full SHA for 9d8e78c
python/port/port.cpp
@@ -66,11 +66,14 @@ void python_execution_end() {
66
}, name, content, size);
67
}
68
69
+ // window isn't defined on Node (CI)
70
EM_ASM({
- window.postMessage({
71
- type: 'epsilon_micropython_executionEnvironment_runCode_finished',
72
- value: Module.___temp_storage_dump,
73
- });
+ if (window) {
+ window.postMessage({
+ type: 'epsilon_micropython_executionEnvironment_runCode_finished',
74
+ value: Module.___temp_storage_dump,
75
+ });
76
+ }
77
delete Module.___temp_storage_dump;
78
});
79
0 commit comments