asSharedStorageWorkletSession

Adapts this ChildSession to a SharedStorageWorkletSession. If the attached target is not of a compatible type, this function throws an exception.