Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Error/S15.11.1.1_A2_T1.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 The [[Prototype]] property of the newly constructed object is set to the original Error prototype
7 object, the one that is the initial value of Error.prototype (15.11.3.1)
8 es5id: 15.11.1.1_A2_T1
9 description: Checking prototype of the newly constructed Error object
10 ---*/
11
12 //////////////////////////////////////////////////////////////////////////////
13 //CHECK#1
14 var err1 = Error('msg1');
15 if (!Error.prototype.isPrototypeOf(err1)) {
16 $ERROR('#1: var err1=Error(\'msg1\'); Error.prototype.isPrototypeOf(err1) return true. Actual: ' + Error.prototype.isPrototypeOf(err1));
17 }
18 //
19 //////////////////////////////////////////////////////////////////////////////