GeezerVison is showing github.com — buffer: use Clamp conversion in Blob slice · nodejs/node@2e64293
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: lib/internal/blob.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -255,11 +255,11 @@ class Blob { | 255 | 255 |
| 256 | 256 | start = converters['long long']( | 257 | 257 | start, | 258 | | - { __proto__: null, context: 'start' }, | | 258 | + { __proto__: null, context: 'start', clamp: true }, | 259 | 259 | ); | 260 | 260 | end = converters['long long']( | 261 | 261 | end, | 262 | | - { __proto__: null, context: 'end' }, | | 262 | + { __proto__: null, context: 'end', clamp: true }, | 263 | 263 | ); | 264 | 264 |
| 265 | 265 | if (start < 0) { | |
Collapse file Copy file name to clipboardExpand all lines: test/wpt/status/FileAPI/blob.cjs -12Lines changed: 0 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,16 +36,4 @@ module.exports = { | 36 | 36 | 'Blob-in-worker.worker.js': { | 37 | 37 | skip: 'Depends on Web Workers API', | 38 | 38 | }, | 39 | | - 'Blob-slice.any.js': { | 40 | | - fail: { | 41 | | - expected: [ | 42 | | - 'Slicing test: slice (1,1).', | 43 | | - 'Slicing test: slice (1,3).', | 44 | | - 'Slicing test: slice (1,5).', | 45 | | - 'Slicing test: slice (1,7).', | 46 | | - 'Slicing test: slice (1,8).', | 47 | | - 'Slicing test: slice (1,9).', | 48 | | - ], | 49 | | - }, | 50 | | - }, | 51 | 39 | }; |
|