Archive: nsSCM::stop empties out my stack


nsSCM::stop empties out my stack
I am using Dumpstate::debug to print stack before and after the nsSCM::stop call. I push 3 variables ($0, $1, $2) on stack before calling nsSCM::stop. After call those variables are no longer on the stack. Am I doing something wrong?

Dumpstate::debug <-- I can see 3 variables on stack
nsSCM::Stop $0
pop $1
Dumpstate::debug <-- stack empty ??


That is its designed behavior for whatever reason. It calls clear_stack() before pushing the result on the stack. You can recompile it without clear_stack() or use another one of the available plug-ins.


Thanks for your quick reply. Can you clarify if this is the case only with nsSCM::stop call or all nsSCM calls?


All nsSCM calls.