summaryrefslogtreecommitdiff
path: root/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js
blob: 47c44d3df8658901d4057daeb214ada53fe63adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * Since Error prototype object is not function it has not [[call]] method
 *
 * @path ch15/15.11/15.11.4/S15.11.4_A3.js
 * @description Checking if call of Error prototype as a function fails
 */

//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
	Error.prototype();
	$FAIL('#1: "Error.prototype()" lead to throwing exception');
} catch (e) {}
//
//////////////////////////////////////////////////////////////////////////////