feat: async filters, closes #232

This commit is contained in:
harttle
2020-06-25 12:30:56 +08:00
parent f3f017bd37
commit e36f3ff291
3 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -20,6 +20,6 @@ export class Filter {
if (isKeyValuePair(arg)) argv.push([arg[0], yield evalToken(arg[1], context)])
else argv.push(yield evalToken(arg, context))
}
return this.impl.apply({ context }, [value, ...argv])
return yield this.impl.apply({ context }, [value, ...argv])
}
}