|
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 * The specification does not provide any means for a program to access [[class]] value except through Object.prototype.toString |
|
6 * |
|
7 * @path ch08/8.6/8.6.2/S8.6.2_A3.js |
|
8 * @description Get [[class]] value except through Object.prototype.toString |
|
9 */ |
|
10 |
|
11 var __obj={}; |
|
12 ////////////////////////////////////////////////////////////////////////////// |
|
13 //CHECK#1 |
|
14 if (__obj.toString() !== "[object " + 'Object' + "]"){ |
|
15 $ERROR('#1: var __obj={}; __obj.toString() === "[object " + \'Object\' + "]". Actual: ' + (__obj.toString())); |
|
16 } |
|
17 // |
|
18 ////////////////////////////////////////////////////////////////////////////// |
|
19 |