@next-core/brick-utils 2.47.1 → 2.47.3
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.bundle.js +1 -1
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -1010,7 +1010,7 @@ function sanitize(cooked) {
|
|
|
1010
1010
|
throw new TypeError("Cannot access reserved objects such as `Function`.");
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet]);
|
|
1013
|
+
var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet, RegExp]);
|
|
1014
1014
|
function isAllowedConstructor(constructor) {
|
|
1015
1015
|
// `Date` maybe mocked when running tests for storyboard functions.
|
|
1016
1016
|
return allowedConstructors.has(constructor) || constructor === Date;
|