Debian Codegraph @

js/src/tests/test262/language/module-code/namespace/internals/has-property-sym-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-hasproperty-p
6 description: >
7 Behavior of the [[HasProperty]] internal method with a symbol argument that
8 cannot be found
9 info: |
10 1. If Type(P) is Symbol, return OrdinaryHasProperty(O, P).
11 flags: [module]
12 features: [Symbol, Reflect]
13 ---*/
14
15 import * as ns from './has-property-sym-not-found.js';
16 var sym = Symbol('test262');
17
18 assert.sameValue(sym in ns, false, 'in');
19 assert.sameValue(Reflect.has(ns, sym), false, 'Reflect.has');
20
21 reportCompare(0, 0);