Fix names of atomic load and store opcodes

This commit is contained in:
2026-03-15 20:04:49 +00:00
parent 1318c3cc4e
commit c21b3c79c7

8
asm.js
View File

@@ -188,10 +188,10 @@ const opcodes = {
// 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 ],
"i32.atomic.load": [ 0xfe, 0x10 ],
"i32.atomic.load8_u": [ 0xfe, 0x12 ],
"i32.atomic.store": [ 0xfe, 0x17 ],
"i32.atomic.store8": [ 0xfe, 0x19 ],
};
const mem_flags = {