Bug 1154773 - Change undefined property a.prototype. r=Yoric

This commit is contained in:
Ali Movahedi 2015-04-21 03:40:00 -04:00
parent 3b2aa995f3
commit 4f85f34def

View File

@ -90,7 +90,7 @@ function objEquiv(a, b) {
return false;
}
// An identical 'prototype' property.
if (a.prototype !== b.prototype) {
if ((a.prototype || undefined) != (b.prototype || undefined)) {
return false;
}
// Object.keys may be broken through screwy arguments passing. Converting to