You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0e243e6
Browse filesBrowse the repository at this point in the historyBrowse files
perf(runtime): claim host objects only once a DOMException exists
HasCustomHostObject makes V8 consult IsHostObject for every plain JS
object in a serialized graph — measured ~25ns each, ~+12% on an
object-heavy structuredClone. An isolate that never constructed a
DOMException cannot be holding one, so the claim is gated on a
per-isolate flag markCloneable flips with the first instance;
until then serialization runs the pre-claim path untouched.
Accepted edge, documented at the sample site: a getter running during
the very clone could construct the isolate's first DOMException after a
false sample — that one instance degrades to a plain object, the
pre-feature behavior, and every later serialization sees the flag.
0 commit comments