export function rethrowFatalFormulaBindingError(error) {
    if (isFormulaBindingTimeoutError(error)) {
        throw error;
    }
}
function isFormulaBindingTimeoutError(error) {
    let current = error;
    let depth = 0;
    while (typeof current === 'object' && current !== null && depth < 16) {
        if (current instanceof Error && current.name === 'EngineEvaluationTimeoutError') {
            return true;
        }
        current = Reflect.get(current, 'cause');
        depth += 1;
    }
    return false;
}
//# sourceMappingURL=formula-binding-error-policy.js.map