greybel-interpreter 1.8.3 → 1.8.5

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.
@@ -25,7 +25,9 @@ class Block extends operation_1.Operation {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
26
  let isEOL = () => false;
27
27
  if (ctx.type === context_1.ContextType.Loop) {
28
- isEOL = () => ctx.loopState.isBreak || ctx.loopState.isContinue;
28
+ isEOL = () => ctx.functionState.isReturn ||
29
+ ctx.loopState.isBreak ||
30
+ ctx.loopState.isContinue;
29
31
  }
30
32
  else if (ctx.type === context_1.ContextType.Function) {
31
33
  isEOL = () => ctx.functionState.isReturn;
@@ -13,7 +13,7 @@ class RuntimeError extends Error {
13
13
  return this.stackTrace
14
14
  .map((op) => {
15
15
  var _a, _b, _c, _d;
16
- return `${op.target} at ${(_b = (_a = op.item) === null || _a === void 0 ? void 0 : _a.start.line) !== null && _b !== void 0 ? _b : 0}:${(_d = (_c = op.item) === null || _c === void 0 ? void 0 : _c.start.character) !== null && _d !== void 0 ? _d : 0}`;
16
+ return `at ${op.target}:${(_b = (_a = op.item) === null || _a === void 0 ? void 0 : _a.start.line) !== null && _b !== void 0 ? _b : 0}:${(_d = (_c = op.item) === null || _c === void 0 ? void 0 : _c.start.character) !== null && _d !== void 0 ? _d : 0}`;
17
17
  })
18
18
  .join('\n');
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",