Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 19, 2024
1 parent 303482d commit 1b2eef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3553,7 +3553,7 @@ <h1><span class="secnum">13.3.10.1</span> Runtime Semantics: Evaluation</h1>
<emu-clause id="sec-evaluate-import-call" type="abstract operation" aoid="EvaluateImportCall">
<h1><span class="secnum">13.3.10.2</span> EvaluateImportCall ( <var>specifierExpression</var>, <var>phase</var> )</h1>
<p>The abstract operation EvaluateImportCall takes arguments <var>specifierExpression</var> (a <emu-xref href="#sec-syntactic-grammar"><a href="https://tc39.es/ecma262/#sec-syntactic-grammar">Parse Node</a></emu-xref>) and <var>phase</var> (<emu-const>source</emu-const> or <emu-const>evaluation</emu-const>) and returns either a <emu-xref href="#sec-completion-record-specification-type"><a href="https://tc39.es/ecma262/#sec-completion-record-specification-type">normal completion containing</a></emu-xref> a Promise or a <emu-xref href="#sec-completion-record-specification-type"><a href="https://tc39.es/ecma262/#sec-completion-record-specification-type">throw completion</a></emu-xref>. It performs the following steps when called:</p>
<emu-alg><ol><li>Let <var>referrer</var> be <emu-xref aoid="GetActiveScriptOrModule"><a href="https://tc39.es/ecma262/#sec-getactivescriptormodule">GetActiveScriptOrModule</a></emu-xref>().</li><li>If <var>referrer</var> is <emu-val>null</emu-val>, set <var>referrer</var> to <emu-xref href="#current-realm"><a href="https://tc39.es/ecma262/#current-realm">the current Realm Record</a></emu-xref>.</li><li>Let <var>specifierRef</var> be ?&nbsp;<emu-xref aoid="Evaluation"><a href="https://tc39.es/ecma262/#sec-evaluation">Evaluation</a></emu-xref> of evaluating <var>specifierExpression</var>.</li><li>Let <var>specifier</var> be ?&nbsp;<emu-xref aoid="GetValue"><a href="https://tc39.es/ecma262/#sec-getvalue">GetValue</a></emu-xref>(<var>specifierRef</var>).</li><li>Let <var>promiseCapability</var> be !&nbsp;<emu-xref aoid="NewPromiseCapability"><a href="https://tc39.es/ecma262/#sec-newpromisecapability">NewPromiseCapability</a></emu-xref>(<emu-xref href="#sec-promise-constructor"><a href="https://tc39.es/ecma262/#sec-promise-constructor">%Promise%</a></emu-xref>).</li><li>Let <var>moduleRequest</var> be <emu-val>undefined</emu-val>.</li><li><ins>If <var>specifier</var> <emu-xref href="#sec-object-type" id="_ref_11"><a href="#sec-object-type">is an Object</a></emu-xref>, then</ins><ol><li><ins>Set <var>moduleRequest</var> be <emu-xref aoid="GetModuleSourceModuleRecord" id="_ref_12"><a href="#sec-getmodulesourcemodulerecord">GetModuleSourceModuleRecord</a></emu-xref>(<var>specifier</var>).</ins></li><li><ins>If <var>moduleRequest</var> is <emu-const>not-a-source</emu-const>, then</ins><ol><li><ins>Perform !&nbsp;<emu-xref aoid="Call"><a href="https://tc39.es/ecma262/#sec-call">Call</a></emu-xref>(<var>promiseCapability</var>.<var class="field">[[Reject]]</var>, <emu-val>undefined</emu-val>, « a newly created <emu-val>TypeError</emu-val> object&nbsp;»).</ins></li><li><ins>Return <var>promiseCapability</var>.<var class="field">[[Promise]]</var>.</ins></li></ol></li><li><ins>If <var>moduleRequest</var>.<var class="field">[[Realm]]</var> is not equal to <emu-xref href="#current-realm"><a href="https://tc39.es/ecma262/#current-realm">the current Realm Record</a></emu-xref>, then</ins><ol><li><ins>Perform !&nbsp;<emu-xref aoid="Call"><a href="https://tc39.es/ecma262/#sec-call">Call</a></emu-xref>(<var>promiseCapability</var>.<var class="field">[[Reject]]</var>, <emu-val>undefined</emu-val>, « a newly created <emu-val>TypeError</emu-val> object&nbsp;»).</ins></li><li><ins>Return <var>promiseCapability</var>.<var class="field">[[Promise]]</var>.</ins></li></ol></li></ol></li><li><ins>Else,</ins><ol><li>Let <var>specifierString</var> be <emu-xref aoid="Completion"><a href="https://tc39.es/ecma262/#sec-completion-ao">Completion</a></emu-xref>(<emu-xref aoid="ToString"><a href="https://tc39.es/ecma262/#sec-tostring">ToString</a></emu-xref>(<var>specifier</var>)).</li><li><emu-xref aoid="IfAbruptRejectPromise"><a href="https://tc39.es/ecma262/#sec-ifabruptrejectpromise">IfAbruptRejectPromise</a></emu-xref>(<var>specifierString</var>, <var>promiseCapability</var>).</li><li><del>Let <var>moduleRequest</var> be</del><ins>Set <var>moduleRequest</var> to</ins> a new ModuleRequest <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> { <var class="field">[[Specifier]]</var>: <var>specifierString</var>, <var class="field">[[Phase]]</var>: <var>phase</var>&nbsp;}.</li></ol></li><li>Perform <emu-xref aoid="HostLoadImportedModule" id="_ref_13"><a href="#sec-HostLoadImportedModule">HostLoadImportedModule</a></emu-xref>(<var>referrer</var>, <var>moduleRequest</var>, <emu-const>empty</emu-const>, <var>promiseCapability</var>).</li><li>Return <var>promiseCapability</var>.<var class="field">[[Promise]]</var>.</li></ol></emu-alg>
<emu-alg><ol><li>Let <var>referrer</var> be <emu-xref aoid="GetActiveScriptOrModule"><a href="https://tc39.es/ecma262/#sec-getactivescriptormodule">GetActiveScriptOrModule</a></emu-xref>().</li><li>If <var>referrer</var> is <emu-val>null</emu-val>, set <var>referrer</var> to <emu-xref href="#current-realm"><a href="https://tc39.es/ecma262/#current-realm">the current Realm Record</a></emu-xref>.</li><li>Let <var>specifierRef</var> be ?&nbsp;<emu-xref aoid="Evaluation"><a href="https://tc39.es/ecma262/#sec-evaluation">Evaluation</a></emu-xref> of evaluating <var>specifierExpression</var>.</li><li>Let <var>specifier</var> be ?&nbsp;<emu-xref aoid="GetValue"><a href="https://tc39.es/ecma262/#sec-getvalue">GetValue</a></emu-xref>(<var>specifierRef</var>).</li><li>Let <var>promiseCapability</var> be !&nbsp;<emu-xref aoid="NewPromiseCapability"><a href="https://tc39.es/ecma262/#sec-newpromisecapability">NewPromiseCapability</a></emu-xref>(<emu-xref href="#sec-promise-constructor"><a href="https://tc39.es/ecma262/#sec-promise-constructor">%Promise%</a></emu-xref>).</li><li>Let <var>moduleRequest</var> be <emu-val>undefined</emu-val>.</li><li><ins>If <var>specifier</var> <emu-xref href="#sec-object-type" id="_ref_11"><a href="#sec-object-type">is an Object</a></emu-xref>, then</ins><ol><li><ins>Set <var>moduleRequest</var> to <emu-xref aoid="GetModuleSourceModuleRecord" id="_ref_12"><a href="#sec-getmodulesourcemodulerecord">GetModuleSourceModuleRecord</a></emu-xref>(<var>specifier</var>).</ins></li><li><ins>If <var>moduleRequest</var> is <emu-const>not-a-source</emu-const>, then</ins><ol><li><ins>Perform !&nbsp;<emu-xref aoid="Call"><a href="https://tc39.es/ecma262/#sec-call">Call</a></emu-xref>(<var>promiseCapability</var>.<var class="field">[[Reject]]</var>, <emu-val>undefined</emu-val>, « a newly created <emu-val>TypeError</emu-val> object&nbsp;»).</ins></li><li><ins>Return <var>promiseCapability</var>.<var class="field">[[Promise]]</var>.</ins></li></ol></li><li><ins>If <var>moduleRequest</var>.<var class="field">[[Realm]]</var> is not equal to <emu-xref href="#current-realm"><a href="https://tc39.es/ecma262/#current-realm">the current Realm Record</a></emu-xref>, then</ins><ol><li><ins>Perform !&nbsp;<emu-xref aoid="Call"><a href="https://tc39.es/ecma262/#sec-call">Call</a></emu-xref>(<var>promiseCapability</var>.<var class="field">[[Reject]]</var>, <emu-val>undefined</emu-val>, « a newly created <emu-val>TypeError</emu-val> object&nbsp;»).</ins></li><li><ins>Return <var>promiseCapability</var>.<var class="field">[[Promise]]</var>.</ins></li></ol></li></ol></li><li><ins>Else,</ins><ol><li>Let <var>specifierString</var> be <emu-xref aoid="Completion"><a href="https://tc39.es/ecma262/#sec-completion-ao">Completion</a></emu-xref>(<emu-xref aoid="ToString"><a href="https://tc39.es/ecma262/#sec-tostring">ToString</a></emu-xref>(<var>specifier</var>)).</li><li><emu-xref aoid="IfAbruptRejectPromise"><a href="https://tc39.es/ecma262/#sec-ifabruptrejectpromise">IfAbruptRejectPromise</a></emu-xref>(<var>specifierString</var>, <var>promiseCapability</var>).</li><li><del>Let <var>moduleRequest</var> be</del><ins>Set <var>moduleRequest</var> to</ins> a new ModuleRequest <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> { <var class="field">[[Specifier]]</var>: <var>specifierString</var>, <var class="field">[[Phase]]</var>: <var>phase</var>&nbsp;}.</li></ol></li><li>Perform <emu-xref aoid="HostLoadImportedModule" id="_ref_13"><a href="#sec-HostLoadImportedModule">HostLoadImportedModule</a></emu-xref>(<var>referrer</var>, <var>moduleRequest</var>, <emu-const>empty</emu-const>, <var>promiseCapability</var>).</li><li>Return <var>promiseCapability</var>.<var class="field">[[Promise]]</var>.</li></ol></emu-alg>
</emu-clause>
</emu-clause>
Expand Down
2 changes: 1 addition & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ contributors: Luca Casonato, Guy Bedford
1. Let _promiseCapability_ be ! NewPromiseCapability(%Promise%).
1. Let _moduleRequest_ be *undefined*.
1. <ins>If _specifier_ is an Object, then</ins>
1. <ins>Set _moduleRequest_ be GetModuleSourceModuleRecord(_specifier_).</ins>
1. <ins>Set _moduleRequest_ to GetModuleSourceModuleRecord(_specifier_).</ins>
1. <ins>If _moduleRequest_ is ~not-a-source~, then</ins>
1. <ins>Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « a newly created *TypeError* object »).</ins>
1. <ins>Return _promiseCapability_.[[Promise]].</ins>
Expand Down

0 comments on commit 1b2eef4

Please sign in to comment.