Skip to content

Commit 69183bd

Browse files
authored
Reject promise if second argument is not object (#108)
1 parent a746bbf commit 69183bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ <h1>EvaluateImportCall ( _specifierExpression_ [ , _optionsExpression_ ] )</h1>
8181
1. IfAbruptRejectPromise(_specifierString_, _promiseCapability_).
8282
1. Let _assertions_ be a new empty List.
8383
1. If _options_ is not *undefined*, then
84+
1. If Type(_options_) is not Object,
85+
1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, &laquo; a newly created *TypeError* object &raquo;).
86+
1. Return _promiseCapability_.[[Promise]].
8487
1. Let _assertionsObj_ be Get(_options_, *"assert"*).
8588
1. IfAbruptRejectPromise(_assertionsObj_, _promiseCapability_).
8689
1. If _assertionsObj_ is not *undefined*,

0 commit comments

Comments
 (0)