Before this commit, it wasn't possible to patch some functions (e.g. setTimeout) on window, because of the way we call them. Indeed, we typically do `setTimeout(...)`, because this function doesn't need to be bound to the window object. X-original-commit: 476dbf75bb88dc2ddfdd47c1f229ce53cf7fadb7 Part-of: odoo/odoo#78698