Bug 575522 - Object.prototype.toString should return "[object Undefined]" and "[object Null]" when called with |this === undefined| or |this === null|, respectively. r=jorendorff,brendan
This commit is contained in:
@@ -158,6 +158,8 @@ const char *const js_common_atom_names[] = {
|
||||
js_name_str, /* nameAtom */
|
||||
js_next_str, /* nextAtom */
|
||||
js_noSuchMethod_str, /* noSuchMethodAtom */
|
||||
"[object Null]", /* objectNullAtom */
|
||||
"[object Undefined]", /* objectUndefinedAtom */
|
||||
js_proto_str, /* protoAtom */
|
||||
js_set_str, /* setAtom */
|
||||
js_source_str, /* sourceAtom */
|
||||
|
||||
Reference in New Issue
Block a user