Commit b8bdaf8
lib: disallow file-backed blob cloning
Disallow cloning of file-backed Blobs. If necessary, we can enable
this later but for now we disable it. The reason is because the
underlying FdEntry ends up bound to the Environment/Realm under
which is was created and transfering across worker threads ends up
failing.
Fixes: #47334
PR-URL: #47574
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 0887fa0 commit b8bdaf8Copy full SHA for b8bdaf8
File tree
Expand file treeCollapse file tree
2 files changed
+22
-1
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+22
-1
lines changedOpen diff view settings
Collapse file
+10-1Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
56 | 56 | |
57 | 57 | |
58 | 58 | |
| 59 | + |
59 | 60 | |
60 | 61 | |
61 | 62 | |
| ||
74 | 75 | |
75 | 76 | |
76 | 77 | |
| 78 | + |
77 | 79 | |
78 | 80 | |
79 | 81 | |
| ||
186 | 188 | |
187 | 189 | |
188 | 190 | |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
189 | 196 | |
190 | 197 | |
191 | 198 | |
| ||
438 | 445 | |
439 | 446 | |
440 | 447 | |
441 | | - |
| 448 | + |
| 449 | + |
| 450 | + |
442 | 451 | |
443 | 452 | |
444 | 453 | |
|
Collapse file
test/parallel/test-blob-file-backed.js
Copy file name to clipboardExpand all lines: test/parallel/test-blob-file-backed.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| ||
99 | 100 | |
100 | 101 | |
101 | 102 | |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
0 commit comments