Convert logging about an unknown type into an assert

master
Paul Loyd 2017-11-06 16:37:04 +03:00
parent e8cfb0c8c5
commit a72929ea17
1 changed files with 1 additions and 4 deletions

View File

@ -105,11 +105,8 @@ class Collector {
const extractor = group[node.type];
if (!extractor) {
console.log('!!!!', node.type, group.entries);
//console.dir(node, {colors: true, depth: 5});
assert.fail(`No extractor for "${node.type}" in group "${group.entries[0]}"`);
return null;
//this._spawn(node, scope);
//return null;
}
const iter = extractor(node);