diff --git a/classlib/src/main/java/org/teavm/classlib/java/nio/TByteOrder.java b/classlib/src/main/java/org/teavm/classlib/java/nio/TByteOrder.java index bc3ca6a1d..f88285b7b 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/nio/TByteOrder.java +++ b/classlib/src/main/java/org/teavm/classlib/java/nio/TByteOrder.java @@ -33,7 +33,7 @@ public final class TByteOrder { 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);