-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editorial: modernize timers spec #7348
Conversation
In addition to general updates to use modern terminology and improved precision, this moves the Web IDL conversion note and example to after the algorithm, and removes the (exported) "list of active timers" concept since it's not something other specs should be messing with.
to <var>method context</var>.</p></li> | ||
<li><p>Let <var>thisArg</var> be <var>global</var> if that is a <code>WorkerGlobalScope</code> | ||
object; otherwise let <var>thisArg</var> be the <code>WindowProxy</code> that corresponds to | ||
<var>global</var>.</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this instead be something like global's relevant Realm.[[GlobalEnv]].[[GlobalThisValue]]? (Elsewhere we use relevant Realm.[[GlobalEnv]]'s EnvironmentRecord's [[GlobalThisValue]] but JS itself does the shortcut there.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly, but I'd kind of like to not spread that very-opaque pattern too far. Instead we should define a wrapper term that we can use. I'll file a separate issue for that.
In addition to general updates to use modern terminology and improved precision, this moves the Web IDL conversion note and example to after the algorithm, and removes the (exported) "list of active timers" concept since it's not something other specs should be messing with.
This is the first step toward the refactoring mentioned in whatwg/dom#1032 (comment), but it includes only changes that are independently good for HTML, without consideration for other specs yet. I'll do a follow-on PR for those.
/timers-and-user-prompts.html ( diff )
/webappapis.html ( diff )