Debian Codegraph @

js/src/tests/test262/language/module-code/namespace/internals/get-str-initialize.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 esid: sec-module-namespace-exotic-objects-get-p-receiver
6 description: >
7 References observe the initialization of lexical bindings
8 info: |
9 [...]
10 12. Let targetEnvRec be targetEnv's EnvironmentRecord.
11 13. Return ? targetEnvRec.GetBindingValue(binding.[[BindingName]], true).
12 flags: [module]
13 features: [let]
14 ---*/
15
16 import * as ns from './get-str-initialize.js';
17 export let localUninit1 = 111;
18 let localUninit2 = 222;
19 export { localUninit2 as renamedUninit };
20 export { localUninit1 as indirectUninit } from './get-str-initialize.js';
21 export default 333;
22
23 assert.sameValue(ns.localUninit1, 111);
24 assert.sameValue(ns.renamedUninit, 222);
25 assert.sameValue(ns.indirectUninit, 111);
26 assert.sameValue(ns.default, 333);
27
28 reportCompare(0, 0);