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

This commit is contained in:
Ali Movahedi 2015-04-19 11:26:00 +02:00
parent 5ad1e826ae
commit 1461bbcedd

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