mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Elaborate reference error message; fix iloop in __hasInstance__.
This commit is contained in:
parent
e91eb18b8d
commit
c0ad926a1b
@ -201,6 +201,8 @@ function toObject(v, r, rn) {
|
||||
return v;
|
||||
}
|
||||
var message = r + " (type " + (typeof v) + ") has no properties";
|
||||
if (r instanceof Reference)
|
||||
message += ", not even " + r.propertyName;
|
||||
throw rn ? new TypeError(message, rn.filename, rn.lineno)
|
||||
: new TypeError(message);
|
||||
}
|
||||
@ -797,6 +799,7 @@ var FOp = FunctionObject.prototype = {
|
||||
while ((o = v.__proto__)) {
|
||||
if (o == p)
|
||||
return true;
|
||||
v = o;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user