@abaplint/runtime 2.8.17 → 2.8.19

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.
@@ -23,7 +23,7 @@ export declare class FieldSymbol {
23
23
  appendInitial(): import("./table").TableRowType | undefined;
24
24
  array(): any;
25
25
  getArrayLength(): any;
26
- set(value: any): this;
26
+ set(value: any): this | undefined;
27
27
  getOffset(input: {
28
28
  offset?: number | INumeric | Hex;
29
29
  length?: number | INumeric | Hex;
@@ -90,6 +90,16 @@ class FieldSymbol {
90
90
  return this.pointer?.getArrayLength();
91
91
  }
92
92
  set(value) {
93
+ if (this.casting) {
94
+ if (this.type instanceof hex_1.Hex || this.type instanceof hex_uint8_1.HexUInt8) {
95
+ const pt = this.pointer;
96
+ if (pt instanceof float_1.Float) {
97
+ const buf = Buffer.from(value.get(), "hex");
98
+ pt.set(buf.readDoubleLE());
99
+ return;
100
+ }
101
+ }
102
+ }
93
103
  this.pointer?.set(value);
94
104
  return this;
95
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.8.17",
3
+ "version": "2.8.19",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,12 +29,12 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "@types/chai": "^4.3.12",
32
+ "@types/chai": "^4.3.14",
33
33
  "@types/mocha": "^10.0.6",
34
34
  "chai": "^4.4.1",
35
35
  "mocha": "^10.3.0",
36
36
  "source-map-support": "^0.5.21",
37
- "typescript": "^5.4.2"
37
+ "typescript": "^5.4.3"
38
38
  },
39
39
  "dependencies": {
40
40
  "temporal-polyfill": "^0.2.3"