@cilix/lightjs 0.0.8 → 0.0.9
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/core.js +5 -1
- package/package.json +1 -1
package/core.js
CHANGED
|
@@ -1365,7 +1365,6 @@ module.exports = (config, fs, path) => {
|
|
|
1365
1365
|
} else if (peek('js_context')) {
|
|
1366
1366
|
includeRuntime = true;
|
|
1367
1367
|
ast_node('js', { js: tok.data, pos: tok.pos, file: tok.file });
|
|
1368
|
-
js_found = true;
|
|
1369
1368
|
next();
|
|
1370
1369
|
} else {
|
|
1371
1370
|
throw_error({ msg: "unexpected: " + tok.type, pos: tok.pos, file: tok.file });
|
|
@@ -1579,6 +1578,11 @@ module.exports = (config, fs, path) => {
|
|
|
1579
1578
|
}
|
|
1580
1579
|
}
|
|
1581
1580
|
} break;
|
|
1581
|
+
case 'when': {
|
|
1582
|
+
// immediately print else
|
|
1583
|
+
// mark first child with id_#child_count
|
|
1584
|
+
walk(node.children[1]);
|
|
1585
|
+
} break;
|
|
1582
1586
|
case 'if': {
|
|
1583
1587
|
if (evaluate(node.data)) {
|
|
1584
1588
|
walk(node.children[0]);
|