trisquel-icecat/icecat/intl/icu_capi/bindings/js/ICU4XMeasureUnit.mjs
2025-10-06 02:35:48 -06:00

17 lines
507 B
JavaScript

import wasm from "./diplomat-wasm.mjs"
import * as diplomatRuntime from "./diplomat-runtime.mjs"
const ICU4XMeasureUnit_box_destroy_registry = new FinalizationRegistry(underlying => {
wasm.ICU4XMeasureUnit_destroy(underlying);
});
export class ICU4XMeasureUnit {
#lifetimeEdges = [];
constructor(underlying, owned, edges) {
this.underlying = underlying;
this.#lifetimeEdges.push(...edges);
if (owned) {
ICU4XMeasureUnit_box_destroy_registry.register(this, underlying);
}
}
}