chore: report
This commit is contained in:
parent
07861db17b
commit
78416fbb72
|
@ -18,9 +18,14 @@ function compileOp(op, latus) {
|
|||
)).concat(context);
|
||||
// Promises are resolved transparently.
|
||||
const apply = (args) => fastApply(previous, current, args);
|
||||
return evaluated.some((arg) => arg instanceof Promise)
|
||||
? Promise.all(evaluated).then(apply)
|
||||
: apply(evaluated);
|
||||
try {
|
||||
return evaluated.some((arg) => arg instanceof Promise)
|
||||
? Promise.all(evaluated).then(apply)
|
||||
: apply(evaluated);
|
||||
}
|
||||
catch (error) {
|
||||
throw new Error(`Behaving ${JSON.stringify(op, null, 2)}: ${error.stack}`);
|
||||
}
|
||||
}
|
||||
default:
|
||||
throw new TypeError(`Invalid expression op: '${op.type}'`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user