Skip to content

Commit 61c1c79

Browse files
committed
[worklets] Update agent and realm allocation
Follows whatwg/html#5411.
1 parent deec884 commit 61c1c79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

worklets/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@ Note:
219219
When a user agent is to <dfn export>create a WorkletGlobalScope</dfn>, given |workletGlobalScopeType|,
220220
|moduleResponsesMap|, and |outsideSettings|, it <em>must</em> run the following steps:
221221

222-
1. Create the <a>worklet global scope execution environment</a> and run the rest of these steps
223-
in that context.
222+
1. Let |agent| be the result of [=obtain a worklet agent|obtaining a worklet agent=] given
223+
|outsideSettings|. This agent corresponds to the a <a>worklet global scope execution
224+
environment</a>. Run the rest of these steps in that context.
224225

225-
2. Call the JavaScript <a>InitializeHostDefinedRealm</a> abstract operation with the following
226-
customizations:
226+
2. Let |realmExecutionContext| be the result of
227+
[=create a new JavaScript realm|creating a new JavaScript realm=] given <var>agent</var> and
228+
the following customizations:
227229

228230
- For the global object, create a new |workletGlobalScopeType| object. Let
229231
|workletGlobalScope| be the created object.
230232

231-
- Let |realmExecutionContext| be the created JavaScript execution context.
232-
233233
3. Let |insideSettings| be the result of <a>set up a worklet environment settings object</a>
234234
given |realmExecutionContext|, and |outsideSettings|.
235235

0 commit comments

Comments
 (0)