simplify — we can just pass env
simplify — environment is enough
simplify — environment is enough
avoid double call "handleExecutionError"
computeStackFrames should return frames starting from firstFrameIndex