greybel-interpreter 1.7.6 → 1.7.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.
@@ -10,6 +10,7 @@ class RuntimeError extends Error {
10
10
  this.source = source;
11
11
  }
12
12
  createTrace(context) {
13
+ var _a, _b;
13
14
  const related = new Map();
14
15
  let item = context;
15
16
  while (item) {
@@ -18,7 +19,7 @@ class RuntimeError extends Error {
18
19
  }
19
20
  const lines = [];
20
21
  for (const [item, target] of related) {
21
- lines.push(`${target} at ${item.start.line}:${item.start.character}`);
22
+ lines.push(`${target} at ${(_a = item === null || item === void 0 ? void 0 : item.start.line) !== null && _a !== void 0 ? _a : 0}:${(_b = item === null || item === void 0 ? void 0 : item.start.character) !== null && _b !== void 0 ? _b : 0}`);
22
23
  }
23
24
  return lines.join('\n');
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",