We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a83c407 commit b1ff4ccCopy full SHA for b1ff4cc
1 file changed
lib/parser/pbxproj.js
@@ -178,7 +178,7 @@ function peg$parse(input, options) {
178
var returnObject = list[0][0];
179
for(var i = 1; i < list.length; i++){
180
var another = list[i][0];
181
- returnObject = merge_obj(returnObject, another);
+ returnObject = Object.assign(returnObject, another);
182
}
183
return returnObject;
184
},
@@ -1879,18 +1879,6 @@ function peg$parse(input, options) {
1879
return s0;
1880
1881
1882
-
1883
- function merge_obj(obj, secondObj) {
1884
- if (!obj)
1885
- return secondObj;
1886
1887
- for(var i in secondObj)
1888
- obj[i] = merge_obj(obj[i], secondObj[i]);
1889
1890
- return obj;
1891
- }
1892
1893
1894
peg$result = peg$startRuleFunction();
1895
1896
if (peg$result !== peg$FAILED && peg$currPos === input.length) {
0 commit comments