mol_plot_all 1.2.54 → 1.2.55

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/node.test.js CHANGED
@@ -2312,11 +2312,22 @@ var $;
2312
2312
  if (!sub)
2313
2313
  return 0;
2314
2314
  let min = 0;
2315
- sub.forEach(view => {
2316
- if (view instanceof $mol_view) {
2317
- min = Math.max(min, view.minimal_width());
2315
+ try {
2316
+ sub.forEach(view => {
2317
+ if (view instanceof $mol_view) {
2318
+ min = Math.max(min, view.minimal_width());
2319
+ }
2320
+ });
2321
+ }
2322
+ catch (error) {
2323
+ if (error instanceof Promise) {
2324
+ $.$mol_atom2.current.subscribe(error);
2318
2325
  }
2319
- });
2326
+ else if ($.$mol_fail_catch(error)) {
2327
+ console.error(error);
2328
+ }
2329
+ return 24;
2330
+ }
2320
2331
  return min;
2321
2332
  }
2322
2333
  maximal_width() {