porffor 0.40.4 → 0.40.5

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/compiler/2c.js CHANGED
@@ -772,9 +772,10 @@ _time_out = _time.tv_nsec / 1000000. + _time.tv_sec * 1000.;`);
772
772
  }
773
773
 
774
774
  case Opcodes.throw: {
775
- const id = vals.pop();
776
-
777
- line(`printf("Uncaught ${exceptions[id].constructor}: ${exceptions[id].message}\\n")`);
775
+ // todo: actually print exception
776
+ vals.pop();
777
+ vals.pop();
778
+ line(`printf("Uncaught exception\\n")`);
778
779
  line(`exit(1)`);
779
780
 
780
781
  includes.set('stdio.h', true);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.40.4+cc1f25444",
4
+ "version": "0.40.5+0eaa98b40",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.40.4+cc1f25444';
3
+ globalThis.version = '0.40.5+0eaa98b40';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {