@lwc/engine-core 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -5643,8 +5643,11 @@ function ncls(value) {
5643
5643
  }
5644
5644
  }
5645
5645
  }
5646
- else if (shared.isObject(value)) {
5647
- for (const key in value) {
5646
+ else if (shared.isObject(value) && !shared.isNull(value)) {
5647
+ // Iterate own enumerable keys of the object
5648
+ const keys = shared.keys(value);
5649
+ for (let i = 0; i < keys.length; i += 1) {
5650
+ const key = keys[i];
5648
5651
  if (value[key]) {
5649
5652
  res += key + ' ';
5650
5653
  }
@@ -8068,5 +8071,5 @@ exports.swapTemplate = swapTemplate;
8068
8071
  exports.track = track;
8069
8072
  exports.unwrap = unwrap;
8070
8073
  exports.wire = wire;
8071
- /** version: 7.0.1 */
8074
+ /** version: 7.0.2 */
8072
8075
  //# sourceMappingURL=index.cjs.js.map