Skip to content

Commit 8a1a3e8

Browse files
committed
handling function arity
1 parent 7a80f88 commit 8a1a3e8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/Ark/VM/VM.inl

+1-5
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,7 @@ inline void VM_t<debug>::mut()
790790
if constexpr (debug)
791791
Ark::logger.info("MUT ({0}) PP:{1}, IP:{2}"s, m_symbols[id], m_pp, m_ip);
792792

793-
// if stack is empty, MUT id has no effect
794-
if (m_frames.back().stackSize() != 0)
795-
registerVariable(id, pop());
796-
else
797-
registerVariable(id, FFI::nil);
793+
registerVariable(id, pop());
798794
}
799795

800796
template<bool debug>

0 commit comments

Comments
 (0)