@ball-lang/compiler 1.6.4 → 1.7.0
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/dist/preamble.d.ts.map +1 -1
- package/dist/preamble.js +0 -8
- package/dist/preamble.js.map +1 -1
- package/package.json +1 -1
- package/src/preamble.ts +0 -8
package/dist/preamble.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preamble.d.ts","sourceRoot":"","sources":["../src/preamble.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"preamble.d.ts","sourceRoot":"","sources":["../src/preamble.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,QAq7C/B,CAAC"}
|
package/dist/preamble.js
CHANGED
|
@@ -512,14 +512,6 @@ function __dart_mod(a: any, b: any): any {
|
|
|
512
512
|
// Active exception for rethrow. Catch bodies shadow with a local.
|
|
513
513
|
let __ball_active_error: any = undefined;
|
|
514
514
|
|
|
515
|
-
// Safe own-property lookup. Returns undefined if key is not an own property.
|
|
516
|
-
// Avoids triggering Object.prototype getters (entries, keys, values) on
|
|
517
|
-
// plain objects that aren't meant to be Dart Maps.
|
|
518
|
-
function __ball_own(obj: any, key: any): any {
|
|
519
|
-
if (obj == null || typeof obj !== 'object') return undefined;
|
|
520
|
-
return Object.prototype.hasOwnProperty.call(obj, key) ? obj[key] : undefined;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
515
|
// Dart-style index access. Dart's List '[]' operator throws RangeError on
|
|
524
516
|
// out-of-bounds access, whereas JS array indexing silently returns undefined.
|
|
525
517
|
// To make 'on RangeError' catch clauses behave like Dart we bounds-check list
|
package/dist/preamble.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preamble.js","sourceRoot":"","sources":["../src/preamble.ts"],"names":[],"m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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq7C5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ball-lang/compiler",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Ball → TypeScript compiler. Consumes a Ball protobuf Program and emits idiomatic TypeScript via ts-morph. The canonical TS compiler for Ball — lives in TS land so TS syntax knowledge doesn't leak into other languages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/src/preamble.ts
CHANGED
|
@@ -512,14 +512,6 @@ function __dart_mod(a: any, b: any): any {
|
|
|
512
512
|
// Active exception for rethrow. Catch bodies shadow with a local.
|
|
513
513
|
let __ball_active_error: any = undefined;
|
|
514
514
|
|
|
515
|
-
// Safe own-property lookup. Returns undefined if key is not an own property.
|
|
516
|
-
// Avoids triggering Object.prototype getters (entries, keys, values) on
|
|
517
|
-
// plain objects that aren't meant to be Dart Maps.
|
|
518
|
-
function __ball_own(obj: any, key: any): any {
|
|
519
|
-
if (obj == null || typeof obj !== 'object') return undefined;
|
|
520
|
-
return Object.prototype.hasOwnProperty.call(obj, key) ? obj[key] : undefined;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
515
|
// Dart-style index access. Dart's List '[]' operator throws RangeError on
|
|
524
516
|
// out-of-bounds access, whereas JS array indexing silently returns undefined.
|
|
525
517
|
// To make 'on RangeError' catch clauses behave like Dart we bounds-check list
|