Allow null prototype obj to be compared for equals

Fixes #729
This commit is contained in:
Rohit Arondekar
2014-12-20 08:35:27 +05:30
parent 9f240c5b9e
commit a84eaf2cbe
2 changed files with 21 additions and 1 deletions

View File

@@ -197,7 +197,7 @@ getJasmineRequireObj().matchersUtil = function(j$) {
return result;
function has(obj, key) {
return obj.hasOwnProperty(key);
return Object.prototype.hasOwnProperty.call(obj, key);
}
function isFunction(obj) {