MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / mergeProperties

Method mergeProperties

tools/mcmanifest.js:3008–3021  ·  view source on GitHub ↗
(targets, sources, exclude)

Source from the content-addressed store, hash-verified

3006 return;
3007 }
3008 mergeProperties(targets, sources, exclude) {
3009 if (sources) {
3010 for (let name in sources) {
3011 if (exclude?.includes(name))
3012 continue;
3013 let target = targets[name];
3014 let source = sources[name];
3015 if (target && source && (typeof target == "object") && (typeof source == "object"))
3016 this.mergeProperties(target, source);
3017 else
3018 targets[name] = source;
3019 }
3020 }
3021 }
3022 parseBuild(platform) {
3023 let properties = platform.build;
3024 if (properties) {

Callers 6

mergePlatformMethod · 0.95
filterConfigMethod · 0.80
filterZephyrConfigMethod · 0.80
filterZephyrShieldsMethod · 0.80
filterZephyrOverlayMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected