mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[valueblocks] For.update is a proper value block
This commit is contained in:
1 parent
6930b5f77e
commit
894eadfa67
6 files changed
+10
-13
No files matched your search
@@ -320,13 +320,10 @@ class Driver {
|
||||
terminal.loc
|
||||
).value;
|
||||
|
||||
const updateBlock = this.cx.ir.blocks.get(terminal.update)!;
|
||||
const updateTerminal = updateBlock.terminal;
|
||||
invariant(
|
||||
updateTerminal.kind === "goto",
|
||||
"Expected for loop update block to end in a goto"
|
||||
);
|
||||
const updateValue = this.visitValueBlock(blockValue, updateBlock);
|
||||
const updateValue = this.visitValueBlockNew(
|
||||
terminal.update,
|
||||
terminal.loc
|
||||
).value;
|
||||
|
||||
let loopBody: ReactiveBlock;
|
||||
if (loopId) {
|
||||
|
||||
Reference in new issue
Block a user