tova 0.11.24 → 0.11.26

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "tova",
3
- "version": "0.11.24",
3
+ "version": "0.11.26",
4
4
  "description": "Tova — a modern programming language that transpiles to JavaScript, unifying frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
- "tova": "./bin/tova.js"
8
+ "tova": "bin/tova.js"
9
9
  },
10
10
  "files": [
11
11
  "bin/",
package/src/cli/repl.js CHANGED
@@ -416,10 +416,14 @@ async function startRepl() {
416
416
  }
417
417
  } catch (e) {
418
418
  // If return-wrapping fails, fall back to plain execution
419
- const fallbackCode = replCode + (allSave ? '\n' + allSave : '');
420
- // REPL context: fallback execution of compiled Tova code (intentional dynamic eval)
421
- const fn = new Function('__ctx', `${destructure}${fallbackCode}`);
422
- fn(context);
419
+ try {
420
+ const fallbackCode = replCode + (allSave ? '\n' + allSave : '');
421
+ // REPL context: fallback execution of compiled Tova code (intentional dynamic eval)
422
+ const fn = new Function('__ctx', `${destructure}${fallbackCode}`);
423
+ fn(context);
424
+ } catch (e2) {
425
+ console.error(` Error: ${e2.message}`);
426
+ }
423
427
  }
424
428
  }
425
429
  } catch (err) {
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Auto-generated by scripts/embed-runtime.js — do not edit
2
- export const VERSION = "0.11.24";
2
+ export const VERSION = "0.11.26";