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

Quelle  stack.js

  Sprache: JAVA
 

let tag = new WebAssembly.Tag({parameters: []});

function construct(options) {
 return new WebAssembly.Exception(tag, [], options);
}
function noStack(options) {
 assertEq(construct(options).stack, undefined, 'no stack');
}
function hasStack(options) {
 assertEq(typeof construct(options).stack === 'string'true'has stack');
}

// Test valid option constructors
noStack(undefined);
noStack(null);
noStack({});
noStack({traceStack: false});
noStack({traceStack: 0});
hasStack({traceStack: true});
hasStack({traceStack: 1});

// Test invalid option constructors
assertErrorMessage(() => construct('not an object'), TypeError, /cannot be converted/);

// Test that 'stack' is read-only
let exception = construct({traceStack: true});
exception.stack = 0;
assertEq(typeof exception.stack === 'string'true'is read-only');

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

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-06-11) ¤

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