Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/wasm/   (Browser von der Mozilla Stiftung 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
C=92 H=84 G=87

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© 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.