tjs-lang 0.7.5 → 0.7.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "tjs-lang",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Type-safe JavaScript dialect with runtime validation, sandboxed VM execution, and AI agent orchestration. Transpiles TypeScript to validated JS with fuel-metered execution for untrusted code.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -527,7 +527,9 @@ export function transformIsOperators(source: string): string {
527
527
  */
528
528
  export function insertAsiProtection(source: string): string {
529
529
  // Characters that can continue a previous expression (ASI footguns)
530
- const continuationStarts = /^[\s]*[([/+\-`]/
530
+ // Only (, [, and ` — these are the real hazards where ASI causes bugs.
531
+ // +, -, / at line start are continuations or literals, not footguns.
532
+ const continuationStarts = /^[\s]*[([`]/
531
533
 
532
534
  // Characters/patterns that indicate the previous line expects continuation
533
535
  // (don't insert semicolon after these)