Skip to content

Commit

Permalink
Disallow import() in worklets
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 16, 2020
1 parent 25c78e4 commit d827c3d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -91365,6 +91365,21 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<ol>
<li><p>Let <var>settings object</var> be the <span>current settings object</span>.</p></li>

<li>
<p>If <var>settings object</var>'s <span data-x="concept-settings-object-global">global
object</span> implements <code>WorkletGlobalScope</code>, then:</p>

<ol>
<li><p>Let <var>completion</var> be Completion { [[Type]]: throw, [[Value]]: a new
<code>TypeError</code>, [[Target]]: empty }.</p></li>

<li><p>Perform <span>FinishDynamicImport</span>(<var>referencingScriptOrModule</var>,
<var>specifier</var>, <var>promiseCapability</var>, <var>completion</var>).</p></li>

<li><p>Return.</p></li>
</ol>
</li>

<li><p>Let <var>base URL</var> be <var>settings object</var>'s <span>API base
URL</span>.</p></li>

Expand Down

0 comments on commit d827c3d

Please sign in to comment.