Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/worklet/tests/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 894 B image not shown  

Quelle  worklet_audioWorklet_WASM_features.js   Sprache: JAVA

 
class WasmProcessWorkletProcessor extends AudioWorkletProcessor {
  constructor(...args) {
    super(...args);
    this.port.postMessage(testModules());
  }

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

function testModule(binary) {
  try {
    new WebAssembly.Module(binary);
  } catch (error) {
    if (error instanceof WebAssembly.CompileError) {
      return error.message;
    }
    return "unknown error";
  }
  return true;
}

// TODO: test more features
function testModules() {
  /*
    js -e '
      t = wasmTextToBinary(`
        (module
          (tag)
        )
      `);
      print(t)
    '
  */

  // eslint-disable-next-line
  const exceptionHandlingCode = new Uint8Array([
    0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 13, 3, 1, 0, 0,
  ]);
  return testModule(exceptionHandlingCode);
}

registerProcessor("wasm", WasmProcessWorkletProcessor);

Messung V0.5
C=94 H=96 G=94

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.