function setObjectPrototype (ref, object, metaId, descriptor) {
  if (descriptor === null) return
  const proto = {}
  setObjectMembers(ref, proto, metaId, descriptor.members)
  setObjectPrototype(ref, proto, metaId, descriptor.proto)
  Object.setPrototypeOf(object, proto)
}
function setObjectPrototype (ref, object, metaId, descriptor) {
  if (descriptor === null) return
  const proto = {}
  setObjectMembers(ref, proto, metaId, descriptor.members)
  setObjectPrototype(ref, proto, metaId, descriptor.proto)
  Object.setPrototypeOf(object, proto)
}
function setObjectPrototype ( ref , object , metaId , descriptor ) { if ( descriptor === null ) return const proto = { } setObjectMembers ( ref , proto , metaId , descriptor . members ) setObjectPrototype ( ref , proto , metaId , descriptor . proto ) Object . setPrototypeOf ( object , proto ) }
Populate object's prototype from descriptor. This matches |getObjectPrototype| in rpc-server.
Populate object s prototype from descriptor . This matches |getObjectPrototype| in rpc - server .
set object prototype