Skip to content

Commit

Permalink
wasm gc: fix issue with detection of native byte order in NIO emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
konsoletyper committed Oct 23, 2024
1 parent c56f5be commit d29b436
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private TByteOrder(String name) {

public static TByteOrder nativeOrder() {
if (nativeOrder == null) {
if (PlatformDetector.isJavaScript()) {
if (PlatformDetector.isJavaScript() || PlatformDetector.isWebAssemblyGC()) {
var buffer = new ArrayBuffer(2);
var shortArray = new Int16Array(buffer);
shortArray.set(0, (short) 1);
Expand Down

0 comments on commit d29b436

Please sign in to comment.