Finish the task, returning a result to the caller. The host validates it against
the contract's result schema before resolving the caller (invalid-params on
violation), then tears down this overlay.
result must be STRUCTURED-CLONEABLE — it crosses a frame boundary. A DOM node, a
function, a class instance with methods, a MediaStreamTrack: all DataCloneError.
That throws, deliberately and loudly: the alternative is a caller left hanging to
its invokeTask deadline while this app believes it answered.
Off-host (plain vite dev — no host transport) this is a no-op: there is no caller
to answer. That case, and only that case, is silent.
Finish the task, returning a result to the caller. The host validates it against the contract's result schema before resolving the caller (
invalid-paramson violation), then tears down this overlay.resultmust be STRUCTURED-CLONEABLE — it crosses a frame boundary. A DOM node, a function, a class instance with methods, aMediaStreamTrack: allDataCloneError. That throws, deliberately and loudly: the alternative is a caller left hanging to itsinvokeTaskdeadline while this app believes it answered.Off-host (plain
vite dev— no host transport) this is a no-op: there is no caller to answer. That case, and only that case, is silent.