Shouldn't you use `JSfuncs.stackRestore()` here?