For some reason, EM_ASM_INT is not returning the right value in C++. I am not sure what could be wrong.
In test.cpp file:
#include