@next-core/brick-utils 2.37.9 → 2.37.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.
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, Date, Map, Set, URLSearchParams, WeakMap, WeakSet]);
1423
+ var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet]);
1424
1424
  function isAllowedConstructor(constructor) {
1425
- return allowedConstructors.has(constructor);
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. */