We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ff290b commit f32bfedCopy full SHA for f32bfed
lib/pbxProject.js
@@ -681,7 +681,8 @@ pbxProject.prototype.hasFile = function (filePath) {
681
// helper recursive prop search+replace
682
function propReplace(obj, prop, value) {
683
for (var p in obj) {
684
- if (obj.hasOwnProperty(p)) {
+ // this is needed because the object could have been created with Object.create(null)
685
+ if (Object.prototype.hasOwnProperty.call(obj, p)) {
686
if (typeof obj[p] == 'object') {
687
propReplace(obj[p], prop, value);
688
} else if (p == prop) {
0 commit comments