Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/winapi/src/shared/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  async.js   Sprache: unbekannt

 
// Test calling a function using a previously captured stack as an async stack.

function getAsyncStack() {
  return saveStack();
}

// asyncCause may contain non-ASCII characters.
let testAsyncCause = "Tes" + String.fromCharCode(355) + "String";

callFunctionWithAsyncStack(function asyncCallback() {
  let stack = saveStack();

  assertEq(stack.functionDisplayName, "asyncCallback");
  assertEq(stack.parent, null);
  assertEq(stack.asyncCause, null);

  assertEq(stack.asyncParent.functionDisplayName, "getAsyncStack");
  assertEq(stack.asyncParent.asyncCause, testAsyncCause);
  assertEq(stack.asyncParent.asyncParent, null);

  assertEq(stack.asyncParent.parent.asyncCause, null);
  assertEq(stack.asyncParent.parent.asyncParent, null);
  assertEq(stack.asyncParent.parent.parent, null);
}, getAsyncStack(), testAsyncCause);

Messung V0.5
C=92 H=100 G=95

[ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ]