Skip to content

Commit cdda16c

Browse files
committed
tmp
1 parent f8492fc commit cdda16c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/LoadLFortran.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ async function setup_lfortran_funcs(lfortran_funcs, myPrint) {
144144
}
145145

146146
lfortran_funcs.compile_code = function (source_code) {
147+
console.log("I am here - 1")
147148
try {
148149
return compiler_funcs.emit_wasm_from_source(source_code);
149150
}

pages/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ export default function Home() {
5959
if (wasm_bytes_response) {
6060
const [exit_code, ...compile_result] = wasm_bytes_response.split(",");
6161
if (exit_code !== "0") {
62+
console.log("Fails to compile!")
6263
setOutput(ansi_up.ansi_to_html(compile_result)); // print compile-time error found by lfortran to output
6364
}
6465
else {
66+
console.log("I am here - 2")
6567
var stdout = [];
6668
const exec_res = await lfortran_funcs.execute_code(
6769
new Uint8Array(compile_result),

0 commit comments

Comments
 (0)