Debian Codegraph @

js/src/tests/test262/language/module-code/namespace/internals/get-str-not-found.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 Behavior of the [[Get]] internal method with a string argument for
8 non-exported bindings
9 info: |
10 [...]
11 3. Let exports be the value of O's [[Exports]] internal slot.
12 4. If P is not an element of exports, return undefined.
13 flags: [module]
14 ---*/
15
16 import * as ns from './get-str-not-found.js';
17 var test262;
18 export { test262 as anotherName };
19
20 assert.sameValue(ns.test262, undefined, 'key: test262');
21 assert.sameValue(ns.toStringTag, undefined, 'key: toStringTag');
22 assert.sameValue(ns.iterator, undefined, 'key: iterator');
23 assert.sameValue(ns.__proto__, undefined, 'key: __proto__');
24 assert.sameValue(ns.default, undefined, 'key: default');
25
26 reportCompare(0, 0);