mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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:
1 parent
1301e68ae6
commit
ec3d36b865
1 file changed
+2
-2
+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