@abaplint/runtime 2.3.117 → 2.3.119

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.
@@ -33,6 +33,15 @@ function createData(target, options) {
33
33
  // @ts-ignore
34
34
  target.assign((0, clone_1.clone)(abap.Classes[className][typeName.toLowerCase()]));
35
35
  }
36
+ else if (options.name.startsWith("\\TYPE=%")) {
37
+ // currently, only the runtime knows the references to the anonymous types
38
+ // @ts-ignore
39
+ const clas = abap.Classes["KERNEL_CREATE_DATA_HANDLE"];
40
+ if (clas === undefined) {
41
+ throw new Error("CreateData, kernel class missing");
42
+ }
43
+ clas.anonymous({ name: options.name, dref: target });
44
+ }
36
45
  else {
37
46
  (0, throw_error_1.throwError)("CX_SY_CREATE_DATA_ERROR");
38
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.117",
3
+ "version": "2.3.119",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",