单项选择题

const obj1={};const obj2={foo:’bar’};Object.setPrototypeOf(obj1,obj2);const{foo}=obj1;foo的值是什么?()

A.bar
B.{ibj1}
C.{obj2}
D.undefined