blob: b9cf662835a44977666e5cb48ccf9302d65edb14 (
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(null, 'foo');
});
reportCompare(0, 0);
|