mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
src: fix creating an ArrayBuffer from a Blob created with openAsBlob
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: https://github.com/nodejs/node/pull/47691 Fixes: https://github.com/nodejs/node/issues/47683 Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
d2d5789daa
commit
af9b48a2f1
2 files changed
+19
-2
No files matched your search
@@ -817,7 +817,7 @@ class FdEntry final : public EntryImpl {
|
||||
uint64_t new_start = start_ + start;
|
||||
uint64_t new_end = end_;
|
||||
if (end.has_value()) {
|
||||
new_end = std::min(end.value() + start, new_end);
|
||||
new_end = std::min(end.value(), end_);
|
||||
}
|
||||
|
||||
CHECK(new_start >= start_);
|
||||
@@ -881,7 +881,7 @@ class FdEntry final : public EntryImpl {
|
||||
file,
|
||||
Local<Object>(),
|
||||
entry->start_,
|
||||
entry->end_)),
|
||||
entry->end_ - entry->start_)),
|
||||
entry);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user