According to "The Class of an Object" section, the method Object.prototype.toString()returns [[Class]] internal value. But according to the section 15.2.4.2 of the ECMAScript 5.1 Specification, this method should return string values like '[object Null]', '[object Undefined]', '[object String]', etc.