Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / eval-export-dflt-expr-in.js
blob26aaa3854c2a2a0c48c39f78e3d69011b576c27c
1 // |reftest| 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     The `in` operator may occur within an exported AssignmentExpression
7 esid: sec-moduleevaluation
8 info: |
9     [...]
10     16. Let result be the result of evaluating module.[[ECMAScriptCode]].
11     [...]
13     15.2.3 Exports
15     Syntax
17     ExportDeclaration :
19     export default [lookahead ∉ { function, class }] AssignmentExpression[In];
20 flags: [module]
21 ---*/
23 var x = { x: true };
25 export default 'x' in x;
26 import f from './eval-export-dflt-expr-in.js';
28 assert.sameValue(f, true);
30 reportCompare(0, 0);