Yeah I got that far but then I wasn't sure what exactly that was doing. Normal C++ doesn't directly move stack pointers around and do manual probing, so I was idly wondering whether those calls hid some inline assembly or how they worked.
Edit: Or perhaps that is not the stack of the C++ program but rather than stack of the Javascript program.