restoreproto
Restores closures affected by a recorded prototype hook.
Restores the saved prototype and closure metadata for recorded affected closures. When the hook was installed through a debug.getproto handle, the owning prototype's child slot is put back as well, so later closures stop picking the hook up.
restoreproto(target: function): ()Parameters
| Parameter | Type | Description |
|---|---|---|
target | function | Function currently using the hooked prototype, or the debug.getproto handle it was hooked through. |
Errors: Raises when the current prototype is not recorded as hooked.
