From c21b3c79c71dc7eb48ab4abc80ba5ef268e21060 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sun, 15 Mar 2026 20:04:49 +0000 Subject: [PATCH] Fix names of atomic load and store opcodes --- asm.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/asm.js b/asm.js index 4748b02..80b032a 100644 --- a/asm.js +++ b/asm.js @@ -186,12 +186,12 @@ const opcodes = { "i32.shr_u": 0x76, // Threads instructions - "memory.atomic.notify": [ 0xfe, 0x00 ], - "memory.atomic.wait32": [ 0xfe, 0x01 ], - "memory.atomic.load": [ 0xfe, 0x10 ], - "memory.atomic.load8_u": [ 0xfe, 0x12 ], - "memory.atomic.store": [ 0xfe, 0x17 ], - "memory.atomic.store8": [ 0xfe, 0x19 ], + "memory.atomic.notify": [ 0xfe, 0x00 ], + "memory.atomic.wait32": [ 0xfe, 0x01 ], + "i32.atomic.load": [ 0xfe, 0x10 ], + "i32.atomic.load8_u": [ 0xfe, 0x12 ], + "i32.atomic.store": [ 0xfe, 0x17 ], + "i32.atomic.store8": [ 0xfe, 0x19 ], }; const mem_flags = {