diff options
Diffstat (limited to 'test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js')
-rw-r--r-- | test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js b/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js new file mode 100644 index 000000000..bcd99d2f7 --- /dev/null +++ b/test/built-ins/Error/prototype/toString/S15.11.4.4_A1.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: The Error.prototype has toString property +es5id: 15.11.4.4_A1 +description: Checking Error.prototype.toString +---*/ + +////////////////////////////////////////////////////////////////////////////// +// CHECK#1 +if (!Error.prototype.hasOwnProperty('toString')) { + $ERROR('#1: Error.prototype.hasOwnProperty(\'toString\') return true. Actual: '+Error.prototype.hasOwnProperty('toString')); +} +// +////////////////////////////////////////////////////////////////////////////// |