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/demo/docs.json +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/tjs-eval.js +1 -1
- package/dist/tjs-eval.js.map +2 -2
- package/dist/tjs-lang.js +1 -1
- package/dist/tjs-lang.js.map +2 -2
- package/dist/tjs-vm.js +1 -1
- package/dist/tjs-vm.js.map +2 -2
- package/package.json +1 -1
- package/src/lang/parser-transforms.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tjs-lang",
|
|
3
|
-
"version": "0.7.
|
|
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
|
-
|
|
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)
|