Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  preamble.js

  Sprache: JAVA
 

// |jit-test| skip-if: !wasmComponentsEnabled()

assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  0,
])), WebAssembly.CompileError, /failed to match magic number/);

assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  0000,
])), WebAssembly.CompileError, /failed to match magic number/);

assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
])), WebAssembly.CompileError, /failed to read version/);

assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
  0000,
])), WebAssembly.CompileError, /binary version .* does not match/);

// Core module version should be rejected by the Component constructor.
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
  1000,
])), WebAssembly.CompileError, /binary version .* does not match/);

// Valid empty component.
new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
  0x0d, 010,
]));

// TODO(wasm-cm): Custom sections (section ID 0) should be silently skipped,
// but they currently fail with "unexpected section ID".

// Section framing errors

// Section length extends past end of component.
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
  0x0d, 010,

  0x01, 0x10, // core module section, section length too long
    0x00, 0x61, 0x73, 0x6D,
    0x01, 0x00, 0x00, 0x00,
])), WebAssembly.CompileError, /invalid section length/);

// Unknown section ID.
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
  0x0d, 010,

  0xFF, 0x00, // unknown section ID 0xFF, length 0
])), WebAssembly.CompileError, /unexpected section ID/);

// Section parsing stops with bytes left over
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([
  00x61, 0x73, 0x6D,
  0x0d, 010,

  0x07, 0x04, // type section, data shorter than section length
    0x00,
  0x00, 0x06, // custom section to pad out the component
    0x05,
    0x64, 0x75, 0x6D, 0x6D, 0x79, // "dummy", no data
])), WebAssembly.CompileError, /too many bytes in section/);

Messung V0.5 in Prozent
C=92 H=96 G=93

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-08-26) ¤

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002