@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.
Files changed (2) hide show
  1. package/dist/scip.js +3 -1
  2. 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: error.message,
264
+ error: errorMsg,
263
265
  output: stdout + stderr
264
266
  };
265
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@areb0s/scip.js",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "SCIP Optimization Solver compiled to WebAssembly - LP, MIP, and MINLP support",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",