Skip to content

Commit e44c831

Browse files
committed
Fix return value for define_imports()
1 parent 4d78999 commit e44c831

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/LoadLFortran.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function define_imports(outputBuffer, exit_code, stdout_print) {
5353
const strLen = mem_data.getInt32(4, true);
5454
const s = new TextDecoder("utf8").decode(new Uint8Array(memory.buffer, strLoc, strLen));
5555
outputBuffer.push(s);
56+
return 0;
5657
}
5758
const proc_exit = (exit_code_val) => exit_code.val = exit_code_val;
5859
const cpu_time = (time) => (Date.now() / 1000); // Date.now() returns milliseconds, so divide by 1000

0 commit comments

Comments
 (0)