Move functions in to a higher scope
- Prevents them from accessing eq's local vars, which could cause bugs.
This commit is contained in:
@@ -231,6 +231,7 @@ getJasmineRequireObj().matchersUtil = function(j$) {
|
|||||||
|
|
||||||
return extraKeys;
|
return extraKeys;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function has(obj, key) {
|
function has(obj, key) {
|
||||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||||
@@ -247,5 +248,4 @@ getJasmineRequireObj().matchersUtil = function(j$) {
|
|||||||
// might come from a different frame with different globals.
|
// might come from a different frame with different globals.
|
||||||
return isFunction(ctor) && ctor instanceof ctor;
|
return isFunction(ctor) && ctor instanceof ctor;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user