@abaplint/runtime 2.13.3 → 2.13.4

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.
@@ -111,11 +111,13 @@ function insertInternal(options) {
111
111
  }
112
112
  else if (options.table instanceof types_1.HashedTable && data) {
113
113
  const { value: val, subrc: subrc } = options.table.insert(data);
114
- if (options.assigning) {
115
- options.assigning.assign(val);
116
- }
117
- if (options.referenceInto) {
118
- options.referenceInto.assign(val);
114
+ if (subrc === 0) {
115
+ if (options.assigning) {
116
+ options.assigning.assign(val);
117
+ }
118
+ if (options.referenceInto) {
119
+ options.referenceInto.assign(val);
120
+ }
119
121
  }
120
122
  abap.builtin.sy.get().subrc.set(subrc);
121
123
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.3",
3
+ "version": "2.13.4",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",