|
@@ -3391,7 +3391,7 @@ Completion ImportCall::execute(Interpreter& interpreter) const
|
|
if (!options_value.is_undefined()) {
|
|
if (!options_value.is_undefined()) {
|
|
// a. If Type(options) is not Object,
|
|
// a. If Type(options) is not Object,
|
|
if (!options_value.is_object()) {
|
|
if (!options_value.is_object()) {
|
|
- auto* error = TypeError::create(realm, DeprecatedString::formatted(ErrorType::NotAnObject.message(), "ImportOptions"));
|
|
|
|
|
|
+ auto error = TypeError::create(realm, DeprecatedString::formatted(ErrorType::NotAnObject.message(), "ImportOptions"));
|
|
// i. Perform ! Call(promiseCapability.[[Reject]], undefined, « a newly created TypeError object »).
|
|
// i. Perform ! Call(promiseCapability.[[Reject]], undefined, « a newly created TypeError object »).
|
|
MUST(call(vm, *promise_capability->reject(), js_undefined(), error));
|
|
MUST(call(vm, *promise_capability->reject(), js_undefined(), error));
|
|
|
|
|
|
@@ -3407,7 +3407,7 @@ Completion ImportCall::execute(Interpreter& interpreter) const
|
|
if (!assertion_object.is_undefined()) {
|
|
if (!assertion_object.is_undefined()) {
|
|
// i. If Type(assertionsObj) is not Object,
|
|
// i. If Type(assertionsObj) is not Object,
|
|
if (!assertion_object.is_object()) {
|
|
if (!assertion_object.is_object()) {
|
|
- auto* error = TypeError::create(realm, DeprecatedString::formatted(ErrorType::NotAnObject.message(), "ImportOptionsAssertions"));
|
|
|
|
|
|
+ auto error = TypeError::create(realm, DeprecatedString::formatted(ErrorType::NotAnObject.message(), "ImportOptionsAssertions"));
|
|
// 1. Perform ! Call(promiseCapability.[[Reject]], undefined, « a newly created TypeError object »).
|
|
// 1. Perform ! Call(promiseCapability.[[Reject]], undefined, « a newly created TypeError object »).
|
|
MUST(call(vm, *promise_capability->reject(), js_undefined(), error));
|
|
MUST(call(vm, *promise_capability->reject(), js_undefined(), error));
|
|
|
|
|
|
@@ -3432,7 +3432,7 @@ Completion ImportCall::execute(Interpreter& interpreter) const
|
|
|
|
|
|
// 3. If Type(value) is not String, then
|
|
// 3. If Type(value) is not String, then
|
|
if (!value.is_string()) {
|
|
if (!value.is_string()) {
|
|
- auto* error = TypeError::create(realm, DeprecatedString::formatted(ErrorType::NotAString.message(), "Import Assertion option value"));
|
|
|
|
|
|
+ auto error = TypeError::create(realm, DeprecatedString::formatted(ErrorType::NotAString.message(), "Import Assertion option value"));
|
|
// a. Perform ! Call(promiseCapability.[[Reject]], undefined, « a newly created TypeError object »).
|
|
// a. Perform ! Call(promiseCapability.[[Reject]], undefined, « a newly created TypeError object »).
|
|
MUST(call(vm, *promise_capability->reject(), js_undefined(), error));
|
|
MUST(call(vm, *promise_capability->reject(), js_undefined(), error));
|
|
|
|
|