Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/wasm/exceptions/   (Browser von der Mozilla Stiftung 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
C=88 H=95 G=91

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

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