@abaplint/runtime 2.7.1 → 2.7.3

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.
@@ -52,6 +52,12 @@ function createData(target, options) {
52
52
  // ABAP_BOOL is special, its not part of the type pool, its built-into abaplint
53
53
  target.assign(new types_1.Character(1, { qualifiedName: "ABAP_BOOL", ddicName: "ABAP_BOOL" }));
54
54
  }
55
+ else if (options.name === "STRING") {
56
+ target.assign(new types_1.String());
57
+ }
58
+ else if (options.name === "I") {
59
+ target.assign(new types_1.Integer());
60
+ }
55
61
  else {
56
62
  (0, throw_error_1.throwError)("CX_SY_CREATE_DATA_ERROR");
57
63
  }
@@ -69,7 +69,7 @@ function describe(input) {
69
69
  input.length.set(input.field.getLength());
70
70
  }
71
71
  else {
72
- throw "DESCRIBE length, unsupported or todo";
72
+ throw new Error("DESCRIBE length, unsupported or todo");
73
73
  }
74
74
  }
75
75
  if (input.decimals) {
@@ -77,7 +77,7 @@ function describe(input) {
77
77
  input.decimals.set(input.field.getDecimals());
78
78
  }
79
79
  else {
80
- throw "DESCRIBE decimals, unsupported or todo";
80
+ throw new Error("DESCRIBE decimals, unsupported or todo");
81
81
  }
82
82
  }
83
83
  if (input.table) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",