blob: 070ba2d6af83c8be430d269cd098690b05f183d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright 2021 Jamie Kyle. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-object.hasown
description: >
Let O be the result of calling ToObject passing the this value as
the argument.
author: Jamie Kyle
features: [Object.hasOwn]
---*/
assert.throws(TypeError, function() {
Object.hasOwn(undefined, 'foo');
});
reportCompare(0, 0);
|