Ver código fonte

LibWasm: Make local_tee validation keep the value on the stack

Ali Mohammad Pur 3 anos atrás
pai
commit
6e07e74261

+ 1 - 0
Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp

@@ -1420,6 +1420,7 @@ VALIDATE_INSTRUCTION(local_tee)
 
     auto& value_type = m_context.locals[index.value()];
     TRY(stack.take(value_type));
+    stack.append(value_type);
 
     return {};
 }