Skip to content

Commit 2368d24

Browse files
authored
Rearrange call to csec before compiler after typechecker (#2950)
1 parent 0dc574f commit 2368d24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commons/utils/JavaHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export async function javaRun(
3535
return Promise.resolve({ status: 'error' });
3636
}
3737

38+
if (isUsingCse) return await runJavaCseMachine(javaCode, targetStep, context);
39+
3840
try {
3941
const classFile = compileFromSource(javaCode);
4042
compiled = {
@@ -106,8 +108,6 @@ export async function javaRun(
106108
}
107109
};
108110

109-
if (isUsingCse) return await runJavaCseMachine(javaCode, targetStep, context);
110-
111111
// load cached classfiles from IndexedDB
112112
return loadCachedFiles(() =>
113113
// Initial loader to fetch commonly used classfiles

0 commit comments

Comments
 (0)