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

Quelle  call-generic-throw-2.js

  Sprache: JAVA
 

// Verify that the generic call trampoline handles fun_call with
// non-object / non-callable `this` correctly

function foo(f) {
  f.call({});
}

with ({}) {}

function f1() {}
function f2() {}

// Ion-compile the generic trampoline.
for (var i = 0; i < 1000; i++) {
  foo(f1, {});
  foo(f2, {});
}

function assertThrows(f) {
  var caught = false;
  try {
    foo(f);
  } catch {
    caught = true;
  }
  assertEq(caught, true);
}

// Non-object callee
assertThrows(0);
assertThrows(undefined);
assertThrows("");

// Non-callable object callee
assertThrows({});

Messung V0.5 in Prozent
C=86 H=84 G=84

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-08) ¤

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