@areb0s/scip.js 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scip.js +3 -1
- package/package.json +1 -1
package/dist/scip.js
CHANGED
|
@@ -257,9 +257,11 @@ var Module=moduleArg;var readyPromiseResolve,readyPromiseReject;Module["ready"]=
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
} catch (error) {
|
|
260
|
+
// Handle both Error objects and raw values (Emscripten can throw numbers/strings)
|
|
261
|
+
var errorMsg = error instanceof Error ? error.message : String(error);
|
|
260
262
|
return {
|
|
261
263
|
status: Status.ERROR,
|
|
262
|
-
error:
|
|
264
|
+
error: errorMsg,
|
|
263
265
|
output: stdout + stderr
|
|
264
266
|
};
|
|
265
267
|
}
|