Skip to content

Commit f32bfed

Browse files
committed
Fix setting build configuration properties
1 parent 3ff290b commit f32bfed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pbxProject.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,8 @@ pbxProject.prototype.hasFile = function (filePath) {
681681
// helper recursive prop search+replace
682682
function propReplace(obj, prop, value) {
683683
for (var p in obj) {
684-
if (obj.hasOwnProperty(p)) {
684+
// this is needed because the object could have been created with Object.create(null)
685+
if (Object.prototype.hasOwnProperty.call(obj, p)) {
685686
if (typeof obj[p] == 'object') {
686687
propReplace(obj[p], prop, value);
687688
} else if (p == prop) {

0 commit comments

Comments
 (0)