From d693175efa17ff5aa083b80c7be2f75e8c5c5993 Mon Sep 17 00:00:00 2001 From: xarantolus Date: Sat, 31 Dec 2022 16:33:11 +0100 Subject: [PATCH] Small syntax fix --- examples/web/src/components/Initial.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/src/components/Initial.vue b/examples/web/src/components/Initial.vue index 5bb04d5..0b82545 100644 --- a/examples/web/src/components/Initial.vue +++ b/examples/web/src/components/Initial.vue @@ -136,7 +136,7 @@ export default defineComponent({ case 1n: { // WRITE syscall MUST write to stdout or stderr // Actually this also supports also "writing" to stdin, as this also works in certain circumstances: https://stackoverflow.com/a/7680234 - if (rdi != BigInt(0) && rdi != BigInt(1) && rdi != BigInt(2)) { + if (rdi != 0n && rdi != 1n && rdi != 2n) { throw new Error(`WRITE syscall: cannot write non-std{out,err} (!= 1,2) fds, but tried ${rdi}`); }