@syncfusion/ej2-base 28.2.5 → 28.2.12

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.
@@ -83,6 +83,9 @@ function setValue(nameSpace, value, obj) {
83
83
  var key;
84
84
  for (i = 0; i < length; i++) {
85
85
  key = keys[parseInt(i.toString(), 10)];
86
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
87
+ continue;
88
+ }
86
89
  if (i + 1 === length) {
87
90
  fromObj["" + key] = value === undefined ? {} : value;
88
91
  }
@@ -1742,6 +1745,7 @@ var IntlBase;
1742
1745
  var spaceGrouping = integerPart.replace(/ $/g, '').indexOf(' ') !== -1;
1743
1746
  cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
1744
1747
  integerPart = integerPart.replace(/,/g, '');
1748
+ integerPart = (/\s$/.test(integerPart)) ? integerPart.replace(/ /g, '') : integerPart;
1745
1749
  var fractionPart = pattern[7];
1746
1750
  if (integerPart.indexOf('0') !== -1) {
1747
1751
  cOptions.minimumIntegerDigits = integerPart.length - integerPart.indexOf('0');