summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/defineProperties/15.2.3.7-1-1.js
blob: b1cd857ba9c3b3b63dd7786e9e5001fd4d7fcca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.3.7-1-1
description: Object.defineProperties throws TypeError if 'O' is undefined
---*/

assert.throws(TypeError, function() {
  Object.defineProperties(undefined, {});
});

reportCompare(0, 0);