@abaplint/runtime 2.8.6 → 2.8.7

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.
@@ -107,7 +107,12 @@ function shift_byte_mode(target, options) {
107
107
  }
108
108
  else {
109
109
  const p = options.places.get() * 2;
110
- value = value.substr(p);
110
+ if (options.direction === "RIGHT") {
111
+ value = "0".repeat(p) + value.substring(0, p);
112
+ }
113
+ else {
114
+ value = value.substr(p);
115
+ }
111
116
  }
112
117
  }
113
118
  else if (options?.to) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",