mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
buffer: coerce extrema to int in blob.slice
PR-URL: https://github.com/nodejs/node/pull/55141 Fixes: https://github.com/nodejs/node/issues/55139 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
12401972b7
commit
b1ebb0d8ca
2 files changed
+8
No files matched your search
@@ -483,6 +483,7 @@ assert.throws(() => new Blob({}), {
|
||||
|
||||
assert.ok(blob.slice(0, 1).constructor === Blob);
|
||||
assert.ok(blob.slice(0, 1) instanceof Blob);
|
||||
assert.ok(blob.slice(0, 1.5) instanceof Blob);
|
||||
}
|
||||
|
||||
(async () => {
|
||||
|
||||
Reference in new issue
Block a user