Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / eval-export-dflt-expr-err-get-value.js
blob2b79516522638fba37cb1a3c100069a1405b11b6
1 // |reftest| error:ReferenceError 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: >
6     Abrupt completions resulting from value retrieval are forwarded to the
7     runtime.
8 esid: sec-moduleevaluation
9 info: |
10     [...]
11     16. Let result be the result of evaluating module.[[ECMAScriptCode]].
12     [...]
14     15.2.3.11 Runtime Semantics: Evaluation
16     ExportDeclaration : export default AssignmentExpression;
18     [...]
19     1. Let rhs be the result of evaluating AssignmentExpression.
20     2. Let value be ? GetValue(rhs).
22     6.2.3.1 GetValue (V)
24     1. ReturnIfAbrupt(V).
25     2. If Type(V) is not Reference, return V.
26     3. Let base be GetBase(V).
27     4. If IsUnresolvableReference(V) is true, throw a ReferenceError exception.
28 negative:
29   phase: runtime
30   type: ReferenceError
31 flags: [module]
32 ---*/
34 export default unresolvable;