Move functions in to a higher scope

- Prevents them from accessing eq's local vars, which could cause bugs.
This commit is contained in:
Ben Christel
2016-07-19 15:02:08 -07:00
parent a0bce8031e
commit d9ded15c45

View File

@@ -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;
} }
}
}; };