MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / registerErrorHandling

Function registerErrorHandling

wasm/error.js:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62};
63
64var registerErrorHandling = function () {
65 quit_ = function (status, toThrow) {
66 unexpectedError();
67 throw toThrow;
68 };
69 window.onerror = (e) => {
70 let errorStr = JSON.stringify(e);
71 if (errorStr.includes("RuntimeError: Aborted()"))
72 quit_("RuntimeError: Aborted()", e);
73 };
74};

Callers 1

postWasmLoadFunction · 0.85

Calls 1

unexpectedErrorFunction · 0.85

Tested by

no test coverage detected