mirror of
https://github.com/tc39/test262.git
synced 2025-05-24 08:40:30 +02:00
24 lines
844 B
JavaScript
24 lines
844 B
JavaScript
// Copyright (C) 2018 Rick Waldron. All rights reserved.
|
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
description: >
|
|
Abrupt completion during module evaluation precludes further evaluation
|
|
esid: sec-moduleevaluation
|
|
info: |
|
|
[...]
|
|
6. For each String required that is an element of
|
|
module.[[RequestedModules]] do,
|
|
a. Let requiredModule be ? HostResolveImportedModule(module, required).
|
|
b. Perform ? requiredModule.ModuleEvaluation().
|
|
flags: [async, module]
|
|
features: [dynamic-import]
|
|
---*/
|
|
|
|
import('./eval-rqstd-abrupt-err-type_FIXTURE.js').then($DONE, error => {
|
|
// negative:
|
|
// phase: runtime
|
|
// type: TypeError
|
|
assert.sameValue(error instanceof TypeError, true);
|
|
}).then($DONE, $DONE).catch($DONE);
|