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

/*---
description: >
  verifyProperty should receive at least 3 arguments: obj, name, and descriptor
includes: [propertyHelper.js]
---*/
assert.throws(Test262Error, () => {
  verifyProperty();
}, "0 arguments");

assert.throws(Test262Error, () => {
  verifyProperty(Object);
}, "1 argument");

assert.throws(Test262Error, () => {
  verifyProperty(Object, 'foo');
}, "2 arguments");

reportCompare(0, 0);