allow unknown operators

pull/15494/head
Rich Harris 1 year ago
parent 7d697d9889
commit 82ea50b560

@ -238,9 +238,7 @@ class Evaluation {
break; break;
default: default:
// @ts-expect-error we can't guard against future operators without this.values.add(UNKNOWN);
// TypeScript getting confused
throw new Error(`Unknown operator ${expression.operator}`);
} }
break; break;
@ -328,9 +326,7 @@ class Evaluation {
break; break;
default: default:
// @ts-expect-error we can't guard against future operators without this.values.add(UNKNOWN);
// TypeScript getting confused
throw new Error(`Unknown operator ${expression.operator}`);
} }
break; break;

Loading…
Cancel
Save