Skip to content

Commit fd5cae7

Browse files
committed
Fix parsing of OCAMLRUNPARAM
1 parent 44d2050 commit fd5cae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: runtime/wasm/runtime.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
for (const l of getenv("OCAMLRUNPARAM")?.split(",") || []) {
154154
if (l === "b") record_backtrace_flag = 1;
155-
if (l.startsWith("b=")) record_backtrace_flag = +l[i].slice(2) ? 1 : 0;
155+
if (l.startsWith("b=")) record_backtrace_flag = +l.slice(2) ? 1 : 0;
156156
}
157157

158158
function alloc_stat(s, large) {

0 commit comments

Comments
 (0)