Skip to content

Commit

Permalink
Update WZ-applied QuickJS patches
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Apr 19, 2024
1 parent 15efa4b commit 27ed115
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patches/012-workaround-emscripten-webkit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/quickjs.c b/quickjs.c
--- a/quickjs.c
+++ b/quickjs.c
@@ -32057,6 +32057,7 @@ static void push_short_int(DynBuf *bc_out, int val)
dbuf_putc(bc_out, OP_push_0 + val);
return;
}
+# if !defined(__EMSCRIPTEN__) // Workaround for WebKit WASM issue
if (val == (int8_t)val) {
dbuf_putc(bc_out, OP_push_i8);
dbuf_putc(bc_out, val);
@@ -32067,6 +32068,7 @@ static void push_short_int(DynBuf *bc_out, int val)
dbuf_put_u16(bc_out, val);
return;
}
+# endif // !defined(__EMSCRIPTEN__)
#endif
dbuf_putc(bc_out, OP_push_i32);
dbuf_put_u32(bc_out, val);
1 change: 1 addition & 0 deletions patches/apply_quickjs_patches.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ quickjs_apply_patches(
"009-asan-compatibility.patch"
"010-win32-gmtime-nullcheck.patch"
"011-fix-compile-without-bignum.patch"
"012-workaround-emscripten-webkit.patch"
)

# Finally, rename VERSION to VERSION.txt
Expand Down

0 comments on commit 27ed115

Please sign in to comment.