summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/harness/verifyProperty-noproperty.js
blob: b40d69854b85c3f8aed15349cdfc08a99453699c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2017 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
  The first argument should have an own property
includes: [propertyHelper.js]
---*/
assert.throws(Test262Error, () => {
  verifyProperty(Object, 'JeanPaulSartre', {});
}, "inexisting property");

assert.throws(Test262Error, () => {
  verifyProperty({}, 'hasOwnProperty', {});
}, "inexisting own property");

reportCompare(0, 0);