We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5825e47 commit fb3e1b5Copy full SHA for fb3e1b5
.changeset/thin-actors-fold.md
@@ -0,0 +1,5 @@
1
+---
2
+"@jolly-pixel/runtime": patch
3
4
+
5
+Fix loadRuntime so error throw in world.connect() can escalate the stack
packages/runtime/src/index.ts
@@ -95,14 +95,14 @@ export async function loadRuntime(
95
await loadingCompletePromise;
96
}
97
98
- await loadingComponent.complete(() => {
99
- runtime.canvas.style.opacity = "1";
100
- runtime.start();
101
- });
+ await loadingComponent.complete();
102
103
catch (error: any) {
104
loadingComponent.error(error);
105
+ runtime.canvas.style.opacity = "1";
+ runtime.start();
106
107
108
export { Runtime, type RuntimeOptions };
0 commit comments