Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/wasm/tail-calls/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  exceptions.js   Sprache: JAVA

 
// Simple test with return_call.
var ins = wasmEvalText(`(module
    (tag $exn)
    (func $f0 (result i32)
       throw $exn
    )
    (func $f1 (result i32)
      try
        return_call $f0
      catch $exn
        i32.const 3
        return
      end
      i32.const 4
    )
    (func (export "main") (result i32)
      call $f1
    )
)`);
assertErrorMessage(() => ins.exports.main(), WebAssembly.Exception, /.*/);

// Test if return stub, created by introducing the slow path,
// not interfering with exception propagation.
var ins0 = wasmEvalText(`(module
    (tag $exn)
    (func $f0 (result i32)
       throw $exn
    )
    (func (export "f") (result i32)
      call $f0
    )
    (export "t" (tag $exn))
)`);
var ins = wasmEvalText(`(module
    (import "" "t" (tag $exn))
    (import "" "f" (func $f0 (result i32)))
    (func $f1 (result i32)
      try
        return_call $f0
      catch $exn
        i32.const 3
        return
      end
      i32.const 4
    )
    (func (export "main") (result i32)
      call $f1
    )
  )`, {"":ins0.exports,});
  
assertErrorMessage(() => ins.exports.main(), WebAssembly.Exception, /.*/);  
  

Messung V0.5
C=91 H=93 G=91

¤ Dauer der Verarbeitung: 0.21 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.