@abaplint/transpiler 2.10.36 → 2.10.38
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.
|
@@ -185,10 +185,10 @@ class TranspileTypes {
|
|
|
185
185
|
resolved = "DecFloat34";
|
|
186
186
|
}
|
|
187
187
|
else if (type instanceof abaplint.BasicTypes.UnknownType) {
|
|
188
|
-
return `(() => { throw "Unknown type: ${type.getError()}" })()`;
|
|
188
|
+
return `(() => { throw new Error("Unknown type: ${type.getError()}") })()`;
|
|
189
189
|
}
|
|
190
190
|
else if (type instanceof abaplint.BasicTypes.VoidType) {
|
|
191
|
-
return `(() => { throw "Void type: ${type.getVoided()}" })()`;
|
|
191
|
+
return `(() => { throw new Error("Void type: ${type.getVoided()}") })()`;
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
resolved = "typeTodo" + type.constructor.name;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.38",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"chai": "^4.5.0",
|
|
39
39
|
"mocha": "^11.1.0",
|
|
40
40
|
"source-map-support": "^0.5.21",
|
|
41
|
-
"typescript": "^5.8.
|
|
41
|
+
"typescript": "^5.8.3"
|
|
42
42
|
}
|
|
43
43
|
}
|