blob: ea86628300c756954764b82d4118fa944703f6e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// 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 [[Construct]] method
es5id: 15.11.4_A4
description: Checking if creating "new Error.prototype" fails
includes:
- $FAIL.js
- Test262Error.js
---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try {
var __instance = new Error.prototype;
$FAIL('#1: "var __instance = new Error.prototype" lead to throwing exception');
} catch (e) {
if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
|