Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / eval-self-abrupt.js
blob9039f207ac872fc918e75bba1170daeef4fc1d8a
1 // |reftest| error:Test262Error module
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 description: Abrupt completion from module evaluation is reported
6 esid: sec-moduleevaluation
7 info: |
8     [...]
9     16. Let result be the result of evaluating module.[[ECMAScriptCode]].
10     17. Suspend moduleCxt and remove it from the execution context stack.
11     18. Resume the context that is now on the top of the execution context
12         stack as the running execution context.
13     19. Return Completion(result).
14 negative:
15   phase: runtime
16   type: Test262Error
17 flags: [module]
18 ---*/
20 throw new Test262Error();