has-property-sym-found.js (680B)
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 symbol argument that 8 can be found 9 info: | 10 1. If Type(P) is Symbol, return OrdinaryHasProperty(O, P). 11 flags: [module] 12 features: [Symbol.toStringTag, Reflect] 13 ---*/ 14 15 import * as ns from './has-property-sym-found.js'; 16 17 assert(Symbol.toStringTag in ns, 'in: Symbol.toStringTag'); 18 assert(Reflect.has(ns, Symbol.toStringTag), 'Reflect.has: Symbol.toStringTag'); 19 20 reportCompare(0, 0);