On 11/12/2021 15:52, Gabriel Ivăncescu wrote:
Nevermind, it looks like the checks are needed. Builtins can still end up with NULL or undefined in ES3, because the check in apply or call only converts to object when they are *not* NULL or undefined. So I guess it was correct.
Or actually my bad, it needs different logic for ES3 even for builtins to convert it to the global object in apply/call (which we do not have currently, because it does it in NativeFunction_call which is wrong).