Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/kernel/sched/     Datei vom 24.10.2025 mit Größe 14 kB image not shown  

Quelle  warning_reporter_worklet.js  Sprache: JAVA


let caught = false;
try {
  // This reports:
  //   * a warning for the unreachable code
  //   * an error for a garbage after the function body
  new Function("return 0; 1;}");
} catch (e) {
  caught = true;
}

class WarningWorkletProcessor extends AudioWorkletProcessor {
  constructor(...args) {
    super(...args);
    this.port.postMessage({ type: "finish", caught });
  }

  process() {
    // Do nothing, output silence
    return true;
  }
}

registerProcessor("warning", WarningWorkletProcessor);

Messung
CHZG
959810097

¤ Dauer der Verarbeitung: 0.14 Sekunden  ¤

*© Formatika GbR, Deutschland