summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch08/8.2/S8.2_A3.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/ch08/8.2/S8.2_A3.js')
-rw-r--r--js/src/tests/test262/ch08/8.2/S8.2_A3.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch08/8.2/S8.2_A3.js b/js/src/tests/test262/ch08/8.2/S8.2_A3.js
new file mode 100644
index 000000000..2d5d49bdf
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.2/S8.2_A3.js
@@ -0,0 +1,23 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * For the keyword null the typeof operator returns the "object"
+ * See also
+ * http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:typeof_Operator
+ * and
+ * http://bugs.ecmascript.org/ticket/250
+ * for example
+ *
+ * @path ch08/8.2/S8.2_A3.js
+ * @description Check type of null
+ */
+
+//////////////////////////////////////////////////////////////
+// CHECK#1
+if (typeof(null) !== "object") {
+ $ERROR('#1: typeof null === "object". Actual: ' + (typeof null));
+}
+//
+/////////////////////////////////////////////////////////////
+