mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
buffer: correctly apply prototype to cloned File
/ Blob
PR-URL: https://github.com/nodejs/node/pull/55138 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
e7d27320c3
commit
f805d0be95
3 changed files with 15 additions and 0 deletions
|
@ -386,6 +386,7 @@ class Blob {
|
|||
}
|
||||
|
||||
function TransferableBlob(handle, length, type = '') {
|
||||
ObjectSetPrototypeOf(this, Blob.prototype);
|
||||
markTransferMode(this, true, false);
|
||||
this[kHandle] = handle;
|
||||
this[kType] = type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue