Skip to content

Commit

Permalink
Reject promise if second argument is not object (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandclark authored Apr 30, 2021
1 parent a746bbf commit 69183bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ <h1>EvaluateImportCall ( _specifierExpression_ [ , _optionsExpression_ ] )</h1>
1. IfAbruptRejectPromise(_specifierString_, _promiseCapability_).
1. Let _assertions_ be a new empty List.
1. If _options_ is not *undefined*, then
1. If Type(_options_) is not Object,
1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, &laquo; a newly created *TypeError* object &raquo;).
1. Return _promiseCapability_.[[Promise]].
1. Let _assertionsObj_ be Get(_options_, *"assert"*).
1. IfAbruptRejectPromise(_assertionsObj_, _promiseCapability_).
1. If _assertionsObj_ is not *undefined*,
Expand Down

0 comments on commit 69183bd

Please sign in to comment.