@next-core/brick-utils 2.37.10 → 2.37.11
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/CHANGELOG.md +8 -0
- package/dist/index.bundle.js +3 -2
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1420,9 +1420,10 @@ function sanitize(cooked) {
|
|
|
1420
1420
|
throw new TypeError("Cannot access reserved objects such as `Function`.");
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
var allowedConstructors = new WeakSet([Array,
|
|
1423
|
+
var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet]);
|
|
1424
1424
|
function isAllowedConstructor(constructor) {
|
|
1425
|
-
|
|
1425
|
+
// `Date` maybe mocked when running tests for storyboard functions.
|
|
1426
|
+
return allowedConstructors.has(constructor) || constructor === Date;
|
|
1426
1427
|
}
|
|
1427
1428
|
|
|
1428
1429
|
/** For next-core internal usage only. */
|