registry.register(target, "some value", target);FinalizationRegistry.prototype.register() / notebook
FinalizationRegistry.prototype.register()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
registry.register(target, { useful: "info about target" });