test262/test/language/module-code/namespace/internals/has-property-sym-found.js
Mike Pennisi 3dc6d92970 Add tests for module namespace objects
Assert correct behavior of the own properties of module namespace
objects and the essential internal methods of module namespace exotic
objects.
2016-04-01 13:15:16 -04:00

20 lines
783 B
JavaScript

// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-module-namespace-exotic-objects-hasproperty-p
description: >
Behavior of the [[HasProperty]] internal method with a symbol argument that
can be found
info: |
1. If Type(P) is Symbol, return OrdinaryHasProperty(O, P).
flags: [module]
features: [Symbol.iterator, Symbol.toStringTag, Reflect]
---*/
import * as ns from './has-property-sym-found.js';
assert(Symbol.iterator in ns, 'in: Symbol.iterator');
assert(Reflect.has(ns, Symbol.iterator), 'Reflect.has: Symbol.iterator');
assert(Symbol.toStringTag in ns, 'in: Symbol.toStringTag');
assert(Reflect.has(ns, Symbol.toStringTag), 'Reflect.has: Symbol.toStringTag');