@graffiticode/basis 1.0.12 → 1.2.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/compiler.js +7 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graffiticode/basis",
3
3
  "type": "module",
4
- "version": "1.0.12",
4
+ "version": "1.2.0",
5
5
  "description": "The basis library for creating Graffiticode languages",
6
6
  "main": "index.js",
7
7
  "scripts": {
package/src/compiler.js CHANGED
@@ -100,6 +100,9 @@ export class Checker extends Visitor {
100
100
  }
101
101
  });
102
102
  }
103
+ if (node.elts.length === 0) {
104
+ resume(err, val);
105
+ }
103
106
  }
104
107
  NUM(node, options, resume) {
105
108
  const err = [];
@@ -414,6 +417,10 @@ export class Transformer extends Visitor {
414
417
  }
415
418
  });
416
419
  }
420
+ if (node.elts.length === 0) {
421
+ val.push("");
422
+ resume(err, val);
423
+ }
417
424
  }
418
425
  NUM(node, options, resume) {
419
426
  const err = [];