Convert unhandled value block terminal to todo

While i'm here, we know that there are a variety of cases that are not supported 
yet around combining value blocks with other syntax constructs. Since we're 
aware of these cases and detect them, we can make this a todo instead of an 
invariant.
This commit is contained in:
Joe Savona
2024-03-13 22:25:18 -07:00
parent 1301e68ae6
commit ec3d36b865
@@ -1078,8 +1078,8 @@ class Driver {
});
}
default: {
CompilerError.invariant(false, {
reason: `Unexpected value block terminal kind '${terminal.kind}'`,
CompilerError.throwTodo({
reason: `Support '${terminal.kind}' as a value block terminal (conditional, logical, optional chaining, etc)`,
description: null,
loc: terminal.loc,
suggestions: null,