Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/intl/icu_capi/bindings/js/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 663 B image not shown  

Quelle  ICU4XLogger.mjs   Sprache: unbekannt

 
import wasm from "./diplomat-wasm.mjs"
import * as diplomatRuntime from "./diplomat-runtime.mjs"

const ICU4XLogger_box_destroy_registry = new FinalizationRegistry(underlying => {
  wasm.ICU4XLogger_destroy(underlying);
});

export class ICU4XLogger {
  #lifetimeEdges = [];
  constructor(underlying, owned, edges) {
    this.underlying = underlying;
    this.#lifetimeEdges.push(...edges);
    if (owned) {
      ICU4XLogger_box_destroy_registry.register(this, underlying);
    }
  }

  static init_simple_logger() {
    return wasm.ICU4XLogger_init_simple_logger();
  }

  static init_console_logger() {
    return wasm.ICU4XLogger_init_console_logger();
  }
}

[ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet)  ]