Skip to content

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

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

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

4 participants