has-property-str-found-uninit.js (1205B)
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-hasproperty-p 6 description: > 7 Behavior of the [[HasProperty]] internal method with a string argument for 8 exported uninitialized bindings. 9 info: | 10 [...] 11 2. Let exports be the value of O's [[Exports]] internal slot. 12 3. If P is an element of exports, return true. 13 4. Return false. 14 flags: [module] 15 features: [Reflect, let] 16 ---*/ 17 18 import * as ns from './has-property-str-found-uninit.js'; 19 20 assert('local1' in ns, 'in: local1'); 21 assert(Reflect.has(ns, 'local1'), 'Reflect.has: local1'); 22 23 assert('renamed' in ns, 'in: renamed'); 24 assert(Reflect.has(ns, 'renamed'), 'Reflect.has: renamed'); 25 26 assert('indirect' in ns, 'in: indirect'); 27 assert(Reflect.has(ns, 'indirect'), 'Reflect.has: indirect'); 28 29 assert('default' in ns, 'in: default'); 30 assert(Reflect.has(ns, 'default'), 'Reflect.has: default'); 31 32 export let local1 = 23; 33 let local2 = 45; 34 export { local2 as renamed }; 35 export { local1 as indirect } from './has-property-str-found-uninit.js'; 36 export default null; 37 38 reportCompare(0, 0);