Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/wasm/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 697 B image not shown  

Quelle  memory-sharing-off.js

  Sprache: JAVA
 

// |jit-test| --shared-memory=off; skip-if: !wasmThreadsEnabled()

// A module using shared memory should be convertable from text to binary even
// if shared memory is disabled.

var bin = wasmTextToBinary('(module (memory 1 1 shared))');

// But we should not be able to validate it:

assertEq(WebAssembly.validate(bin), false);

// Nor to compile it:

assertErrorMessage(() => new WebAssembly.Module(bin),
     WebAssembly.CompileError,
     /shared memory is disabled/);

// We also should not be able to create a shared memory by itself:

assertErrorMessage(() => new WebAssembly.Memory({initial: 1, maximum: 1, shared: true}),
     WebAssembly.LinkError,
     /shared memory is disabled/);


Messung V0.5 in Prozent
C=98 H=87 G=92

¤ Dauer der Verarbeitung: 0.8 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.