Debian Codegraph @

js/src/tests/test262/language/module-code/eval-gtbndng-indirect-trlng-comma.js

raw
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)
10
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 ---*/
21
22 import { x , } from './eval-gtbndng-indirect-trlng-comma_FIXTURE.js';
23
24 assert.sameValue(x, 1);
25
26 reportCompare(0, 0);