(dst reflect.Value, typ reflect.Type, ctx *objectExportCtx)
| 976 | } |
| 977 | |
| 978 | func (o *dataViewObject) exportToArrayOrSlice(dst reflect.Value, typ reflect.Type, ctx *objectExportCtx) error { |
| 979 | if typ == typeBytes { |
| 980 | dst.Set(reflect.ValueOf(o.viewedArrayBuf.data[o.byteOffset : o.byteOffset+o.byteLen])) |
| 981 | return nil |
| 982 | } |
| 983 | return o.baseObject.exportToArrayOrSlice(dst, typ, ctx) |
| 984 | } |
| 985 | |
| 986 | func (r *Runtime) _newTypedArrayObject(buf *arrayBufferObject, offset, length, elemSize int, defCtor *Object, arr typedArray, proto *Object) *typedArrayObject { |
| 987 | o := &Object{runtime: r} |
nothing calls this directly
no test coverage detected