MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / set

Function set

lib/models/per-bundle-addon-cache/addon-proxy.js:138–154  ·  view source on GitHub ↗
(targetCacheEntry, property, value)

Source from the content-addressed store, hash-verified

136 return Reflect.get(targetCacheEntry, property);
137 },
138 set(targetCacheEntry, property, value) {
139 if (property === 'app') {
140 _app = value;
141 return true;
142 }
143
144 if (property === 'preprocessJs') {
145 _preprocessJs = value;
146 return true;
147 }
148
149 if (targetCacheEntry[TARGET_INSTANCE]) {
150 return Reflect.set(targetCacheEntry[TARGET_INSTANCE], property, value);
151 }
152
153 return Reflect.set(targetCacheEntry, property, value);
154 },
155 });
156}
157

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected