let get_this env =
        match env.stackframes.(0).(0) with
        | RStringValue(s) -> s
        | v -> raise (RuntimeError.InternalError "mismatched this in call to String.prototype.length")