serializer._setTreatArrayBufferViewsAsHostObjects(flag)
flag
<boolean> 默认值:false
指示是否将 TypedArray
和 DataView
对象视为宿主对象,即将它们传给 serializer._writeHostObject()
。
flag
<boolean> Default:false
Indicate whether to treat TypedArray
and DataView
objects as
host objects, i.e. pass them to serializer._writeHostObject()
.