Upstream davidmarkclements/rfdc state of the touched files before cfa32493a8
This commit is contained in:
1 parent
99f52dbf7f
commit
7fe17ef74e
2 files changed
-32
No files matched your search
@@ -6,11 +6,6 @@ function copyBuffer (cur) {
|
||||
return Buffer.from(cur)
|
||||
}
|
||||
|
||||
// A DataView takes a byte length, not an element count like a TypedArray.
|
||||
if (cur instanceof DataView) {
|
||||
return new DataView(cur.buffer.slice(), cur.byteOffset, cur.byteLength)
|
||||
}
|
||||
|
||||
return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user