Commit 73ba883
authored
lib: use private field in AbortController
Instead of validating the receiver ourselves, let V8 handle
the validation using the semantics of private fields.
PR-URL: #43820
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent e54ee80 commit 73ba883Copy full SHA for 73ba883
File tree
Expand file treeCollapse file tree
2 files changed
+6
-19
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+6
-19
lines changedOpen diff view settings
Collapse file
lib/internal/abort_controller.js
Copy file name to clipboardExpand all lines: lib/internal/abort_controller.js+3-16Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
292 | 292 | |
293 | 293 | |
294 | 294 | |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | 295 | |
305 | | - |
306 | | - |
307 | | - |
| 296 | + |
308 | 297 | |
309 | 298 | |
310 | 299 | |
311 | 300 | |
312 | 301 | |
313 | | - |
314 | | - |
| 302 | + |
315 | 303 | |
316 | 304 | |
317 | 305 | |
318 | 306 | |
319 | 307 | |
320 | 308 | |
321 | | - |
322 | | - |
| 309 | + |
323 | 310 | |
324 | 311 | |
325 | 312 | |
|
Collapse file
test/parallel/test-abortcontroller.js
Copy file name to clipboardExpand all lines: test/parallel/test-abortcontroller.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
108 | 108 | |
109 | 109 | |
110 | 110 | |
111 | | - |
| 111 | + |
112 | 112 | |
113 | 113 | |
114 | 114 | |
115 | | - |
| 115 | + |
116 | 116 | |
117 | 117 | |
118 | 118 | |
| ||
139 | 139 | |
140 | 140 | |
141 | 141 | |
142 | | - |
| 142 | + |
143 | 143 | |
144 | 144 | |
145 | 145 | |
|
0 commit comments