Changeset 0.37.14 (#226)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -85,6 +85,12 @@ export function createPipe() {
|
||||
entry.stats.calls++;
|
||||
entry.stats.totalMs += performance.now() - t0;
|
||||
|
||||
if (result instanceof Promise) {
|
||||
console.error(`[sw.pipe] ${stage}: filter '${entry.source}' returned Promise (async not supported)`);
|
||||
entry.stats.errors++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (result === null || result === undefined) {
|
||||
return null; // halt chain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user