summaryrefslogtreecommitdiff
path: root/test/built-ins/Error/prototype/S15.11.4_A3.js
blob: e514df09ae7d60fe08e2f50df9c05ae40a12ab83 (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.

/*---
info: Since Error prototype object is not function it has no [[Call]] method
es5id: 15.11.4_A3
description: Checking if call of Error prototype as a function fails
---*/

//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
	Error.prototype();
	$ERROR('#1: "Error.prototype()" lead to throwing exception');
} catch (e) {
    if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////