Skip to content
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

Merged
merged 6 commits into from
Nov 23, 2021
Merged

Editorial: modernize timers spec #7348

merged 6 commits into from
Nov 23, 2021

Conversation

domenic
Copy link
Member

@domenic domenic commented Nov 19, 2021

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 )

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.
@domenic domenic requested a review from annevk November 19, 2021 19:58
source Show resolved Hide resolved
source Show resolved Hide resolved
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>
Copy link
Member

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.)

Copy link
Member Author

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.

source Show resolved Hide resolved
@domenic
Copy link
Member Author

domenic commented Nov 22, 2021

This is ready for another round of review. Let's finish this off before tackling #7349 and #7356.

source Show resolved Hide resolved
@domenic domenic merged commit f4fa7ad into main Nov 23, 2021
@domenic domenic deleted the settimeout-updates branch November 23, 2021 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants