Ensure context is not leaked by |this| for anonymous functions