proxy.setPrototypeOf
Type: ProxyEvent
Fired when changing the prototype with Object.setPrototypeOf
.
const proxy = nexo.create({});
const proto = { kind: "custom" };
nexo.on("proxy.setPrototypeOf", () => {
console.log("Prototype being changed");
});
Object.setPrototypeOf(proxy, proto); // Logs: Prototype being changed