Current section
Files
Jump to
Current section
Files
src/gossamer/weak_ref.ffi.mjs
// src/gossamer/weak_ref.ffi.ts
import { toResult } from "../utils/result.ffi.mjs";
var new_ = (target) => {
return toResult.fromThrows(() => new WeakRef(target));
};
var deref = (ref) => {
return toResult(ref.deref());
};
export {
deref,
new_
};