loopMonitor()

in src/editor/sandbox/loopController.js [49:59]


  loopMonitor(loopID) {
    this.calcLoop(loopID);
    const loop = this.getLoop(loopID);
    const { maxExecTimePerLoop, maxLoopCount } = this._config;
    if (loop.totalExecTime > maxExecTimePerLoop && loop.count > maxLoopCount) {
      this.clearLoops();
      throw new Error(
        'The loop executes so many times that ECharts has to exit the loop in case the page gets stuck'
      );
    }
  }