Skip to content

Commit de47fa3

Browse files
committed
Disallow import() in worklets
Closes w3c/css-houdini-drafts#506.
1 parent c707b7d commit de47fa3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91365,6 +91365,21 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
9136591365
<ol>
9136691366
<li><p>Let <var>settings object</var> be the <span>current settings object</span>.</p></li>
9136791367

91368+
<li>
91369+
<p>If <var>settings object</var>'s <span data-x="concept-settings-object-global">global
91370+
object</span> implements <code>WorkletGlobalScope</code>, then:</p>
91371+
91372+
<ol>
91373+
<li><p>Let <var>completion</var> be Completion { [[Type]]: throw, [[Value]]: a new
91374+
<code>TypeError</code>, [[Target]]: empty }.</p></li>
91375+
91376+
<li><p>Perform <span>FinishDynamicImport</span>(<var>referencingScriptOrModule</var>,
91377+
<var>specifier</var>, <var>promiseCapability</var>, <var>completion</var>).</p></li>
91378+
91379+
<li><p>Return.</p></li>
91380+
</ol>
91381+
</li>
91382+
9136891383
<li><p>Let <var>base URL</var> be <var>settings object</var>'s <span>API base
9136991384
URL</span>.</p></li>
9137091385

0 commit comments

Comments
 (0)