Debian Codegraph @

js/src/tests/test262/built-ins/Object/hasOwn/hasown_nonexistent.js

raw
1 // Copyright (c) 2021 Jamie Kyle. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-object.hasown
6 description: Properties - [[HasOwnProperty]] (property does not exist)
7 author: Jamie Kyle
8 features: [Object.hasOwn]
9 ---*/
10
11 var o = {};
12
13 assert.sameValue(Object.hasOwn(o, "foo"), false, 'Object.hasOwn(o, "foo")');
14
15 reportCompare(0, 0);