Skip to content

Commit 459cc7b

Browse files
committed
added continue instr
1 parent c63c423 commit 459cc7b

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,8 @@
178178
"last 1 firefox version",
179179
"last 1 safari version"
180180
]
181+
},
182+
"resolutions": {
183+
"js-slang": "portal:/home/alsonleej/js-slang"
181184
}
182185
}

src/features/cseMachine/CseMachineUtils.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,15 @@ export function getControlItemComponent(
817817
unhighlightOnHover,
818818
topItem
819819
);
820+
case InstrType.CONTINUE:
821+
return new ControlItemComponent(
822+
'continue',
823+
'Control items until continue marker will be skipped',
824+
stackHeight,
825+
highlightOnHover,
826+
unhighlightOnHover,
827+
topItem
828+
);
820829
case InstrType.CONTINUE_MARKER:
821830
return new ControlItemComponent(
822831
'cont mark',

yarn.lock

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11917,9 +11917,9 @@ __metadata:
1191711917
languageName: node
1191811918
linkType: hard
1191911919

11920-
"js-slang@npm:^1.0.81":
11921-
version: 1.0.81
11922-
resolution: "js-slang@npm:1.0.81"
11920+
"js-slang@portal:/home/alsonleej/js-slang::locator=frontend%40workspace%3A.":
11921+
version: 0.0.0-use.local
11922+
resolution: "js-slang@portal:/home/alsonleej/js-slang::locator=frontend%40workspace%3A."
1192311923
dependencies:
1192411924
"@babel/parser": "npm:^7.19.4"
1192511925
"@commander-js/extra-typings": "npm:^12.0.1"
@@ -11937,9 +11937,8 @@ __metadata:
1193711937
source-map: "npm:0.7.3"
1193811938
bin:
1193911939
js-slang: dist/repl/index.js
11940-
checksum: 10c0/e02012740e3f033cd068e3f2b660d472457fda538b77073f805dc325854aeeb4db67cf2ca162fb89ca7e2b27707753aa738b64bcd359f4faf72f9265a4e619a0
1194111940
languageName: node
11942-
linkType: hard
11941+
linkType: soft
1194311942

1194411943
"js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0":
1194511944
version: 4.0.0

0 commit comments

Comments
 (0)