@next-core/brick-utils 2.47.2 → 2.47.4

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.
@@ -1015,7 +1015,7 @@
1015
1015
  throw new TypeError("Cannot access reserved objects such as `Function`.");
1016
1016
  }
1017
1017
  }
1018
- var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet]);
1018
+ var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet, RegExp]);
1019
1019
  function isAllowedConstructor(constructor) {
1020
1020
  // `Date` maybe mocked when running tests for storyboard functions.
1021
1021
  return allowedConstructors.has(constructor) || constructor === Date;
@@ -17870,6 +17870,8 @@
17870
17870
  return [].concat(handlers).filter(Boolean).map(handler => ({
17871
17871
  type: "EventHandler",
17872
17872
  callback: parseEventCallback(handler.callback),
17873
+ then: parseEventHandlers(handler.then),
17874
+ else: parseEventHandlers(handler.else),
17873
17875
  raw: handler
17874
17876
  }));
17875
17877
  }