Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / eval-gtbndng-indirect-trlng-comma.js
blobe3d6a9ad458315989c4a0a0bb59f19ad7eaa2195
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     NamedImports in ImportDeclaration may contain a trailing comma
7 esid: sec-moduleevaluation
8 info: |
9     8.1.1.5.1 GetBindingValue (N, S)
11     [...]
12     3. If the binding for N is an indirect binding, then
13        a. Let M and N2 be the indirection values provided when this binding for
14           N was created.
15        b. Let targetEnv be M.[[Environment]].
16        c. If targetEnv is undefined, throw a ReferenceError exception.
17        d. Let targetER be targetEnv's EnvironmentRecord.
18        e. Return ? targetER.GetBindingValue(N2, S).
19 flags: [module]
20 ---*/
22 import { x , } from './eval-gtbndng-indirect-trlng-comma_FIXTURE.js';
24 assert.sameValue(x, 1);
26 reportCompare(0, 0);