michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * The specification does not provide any means for a program to access [[class]] value except through Object.prototype.toString michael@0: * michael@0: * @path ch08/8.6/8.6.2/S8.6.2_A3.js michael@0: * @description Get [[class]] value except through Object.prototype.toString michael@0: */ michael@0: michael@0: var __obj={}; michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: if (__obj.toString() !== "[object " + 'Object' + "]"){ michael@0: $ERROR('#1: var __obj={}; __obj.toString() === "[object " + \'Object\' + "]". Actual: ' + (__obj.toString())); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: