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 +4 -3
- package/package.json +1 -1
- package/runner/index.js +1 -1
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
|
-
|
776
|
-
|
777
|
-
|
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