mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user