Skip to content

Commit 4ddb19f

Browse files
Implemented spread operator (#3103)
* Implemented spread operator * Update package.json Resetting to original * Delete .tool-versions --------- Co-authored-by: Martin Henz <[email protected]>
1 parent da82779 commit 4ddb19f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/features/cseMachine/CseMachineUtils.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,15 @@ export function getControlItemComponent(
853853
unhighlightOnHover,
854854
topItem
855855
);
856+
case InstrType.SPREAD:
857+
return new ControlItemComponent(
858+
'spread',
859+
'Unpack array to its elements',
860+
stackHeight,
861+
highlightOnHover,
862+
unhighlightOnHover,
863+
topItem
864+
);
856865
default:
857866
return new ControlItemComponent(
858867
'INSTRUCTION',

0 commit comments

Comments
 (0)