summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/eval-rqstd-abrupt.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/module-code/eval-rqstd-abrupt.js')
-rw-r--r--js/src/tests/test262/language/module-code/eval-rqstd-abrupt.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/eval-rqstd-abrupt.js b/js/src/tests/test262/language/module-code/eval-rqstd-abrupt.js
new file mode 100644
index 0000000000..f02fee5f5b
--- /dev/null
+++ b/js/src/tests/test262/language/module-code/eval-rqstd-abrupt.js
@@ -0,0 +1,23 @@
+// |reftest| error:TypeError module
+// 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().
+negative:
+ phase: runtime
+ type: TypeError
+flags: [module]
+---*/
+
+import './eval-rqstd-abrupt-err-type_FIXTURE.js';
+import './eval-rqstd-abrupt-err-uri_FIXTURE.js';
+
+throw new RangeError();