@abaplint/runtime 2.1.79 → 2.1.81

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.
@@ -81,12 +81,15 @@ function get_hex_from_parameter(comparison_part) {
81
81
  hex_from_parameter = "0" + hex_from_parameter;
82
82
  }
83
83
  }
84
+ else if (comparison_part instanceof types_1.XString) {
85
+ hex_from_parameter = comparison_part.get();
86
+ }
84
87
  else {
85
- throw "runtime_todo, gt hex";
88
+ throw "runtime_todo, gt hex1";
86
89
  }
87
90
  break;
88
91
  default:
89
- throw "runtime_todo, gt hex";
92
+ throw "runtime_todo, gt hex2";
90
93
  }
91
94
  return hex_from_parameter;
92
95
  }
@@ -1,4 +1,4 @@
1
- import { FieldSymbol, Table, TableRowType } from "../types";
1
+ import { DataReference, FieldSymbol, Table, TableRowType } from "../types";
2
2
  import { ICharacter } from "../types/_character";
3
3
  import { INumeric } from "../types/_numeric";
4
4
  export interface IAppendOptions {
@@ -6,6 +6,7 @@ export interface IAppendOptions {
6
6
  target: Table | FieldSymbol | undefined;
7
7
  lines?: boolean;
8
8
  assigning?: FieldSymbol;
9
+ referenceInto?: DataReference;
9
10
  from?: ICharacter | INumeric;
10
11
  to?: ICharacter | INumeric;
11
12
  }
@@ -41,6 +41,14 @@ function append(input) {
41
41
  input.assigning.assign(val);
42
42
  }
43
43
  }
44
+ else if (input.referenceInto) {
45
+ if (val instanceof types_1.FieldSymbol) {
46
+ input.referenceInto.assign(val.getPointer());
47
+ }
48
+ else {
49
+ input.referenceInto.assign(val);
50
+ }
51
+ }
44
52
  }
45
53
  // @ts-ignore
46
54
  abap.builtin.sy.get().tabix.set(input.target.array().length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.1.79",
3
+ "version": "2.1.81",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "@types/chai": "^4.3.3",
32
- "@types/mocha": "^9.1.1",
32
+ "@types/mocha": "^10.0.0",
33
33
  "chai": "^4.3.6",
34
34
  "mocha": "^10.0.0",
35
35
  "source-map-support": "^0.5.21",