You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert: initiating script is not null, since this algorithm is always called from some script.
— seems like it may be incorrect? If I’m reading this right, active script and GetActiveScriptOrModule would return null for the second invocation of “timer initialization steps” kicked off by setTimeout(setTimeout.bind(this, () => {})), for example.
The initiating script is used by the task created at step 9 to determine the base URL if the handler is a string, with another assertion (under 9.3):
Let base URL be initiating script's base URL.
Assert: base URL is not null, as initiating script is a classic script or a JavaScript module script.
If I’m correct that these assertions are wrong, I suspect base URL should be getting set to the API base URL of the settings object of the incumbent realm (captured prior to the step 9 task steps) when initializing script is null. Or something like that.