blob: bb85666d1a83af7c692440269cf2850505a63c35 [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The value of the internal [[Class]] property of Error prototype object is
"Object"
es5id: 15.11.4_A2
description: >
Getting the value of the internal [[Class]] property using
Error.prototype.toString() function
---*/
Error.prototype.toString = Object.prototype.toString;
var __tostr = Error.prototype.toString();
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__tostr !== "[object Object]") {
$ERROR('#1: Error.prototype.toString=Object.prototype.toString; __tostr = Error.prototype.toString(); __tostr === "[object Object]". Actual: ' + __tostr);
}
//
//////////////////////////////////////////////////////////////////////////////