|
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 * For the keyword null the typeof operator returns the "object" |
|
6 * See also |
|
7 * http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:typeof_Operator |
|
8 * and |
|
9 * http://bugs.ecmascript.org/ticket/250 |
|
10 * for example |
|
11 * |
|
12 * @path ch08/8.2/S8.2_A3.js |
|
13 * @description Check type of null |
|
14 */ |
|
15 |
|
16 ////////////////////////////////////////////////////////////// |
|
17 // CHECK#1 |
|
18 if (typeof(null) !== "object") { |
|
19 $ERROR('#1: typeof null === "object". Actual: ' + (typeof null)); |
|
20 } |
|
21 // |
|
22 ///////////////////////////////////////////////////////////// |
|
23 |