@graffiticode/basis 1.1.0 → 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.
- package/package.json +1 -1
- package/src/compiler.js +7 -0
package/package.json
CHANGED
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 = [];
|