File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,8 @@ function initEventTarget(self) {
201
201
202
202
class EventTarget {
203
203
// Used in checking whether an object is an EventTarget. This is a well-known
204
- // symbol as EventTarget may be used cross-realm. See discussion in #33661.
204
+ // symbol as EventTarget may be used cross-realm.
205
+ // Ref: https://github.com/nodejs/node/pull/33661
205
206
static [ kIsEventTarget ] = true ;
206
207
207
208
constructor ( ) {
@@ -520,8 +521,8 @@ function validateEventListenerOptions(options) {
520
521
// Test whether the argument is an event object. This is far from a fool-proof
521
522
// test, for example this input will result in a false positive:
522
523
// > isEventTarget({ constructor: EventTarget })
523
- // It stands in its current implementation as a compromise. For the relevant
524
- // discussion, see #33661.
524
+ // It stands in its current implementation as a compromise.
525
+ // Ref: https://github.com/nodejs/node/pull/33661
525
526
function isEventTarget ( obj ) {
526
527
return obj && obj . constructor && obj . constructor [ kIsEventTarget ] ;
527
528
}
Original file line number Diff line number Diff line change @@ -208,7 +208,8 @@ function onStreamRead(arrayBuffer) {
208
208
}
209
209
210
210
if ( nread !== UV_EOF ) {
211
- // #34375 CallJSOnreadMethod expects the return value to be a buffer.
211
+ // CallJSOnreadMethod expects the return value to be a buffer.
212
+ // Ref: https://github.com/nodejs/node/pull/34375
212
213
stream . destroy ( errnoException ( nread , 'read' ) ) ;
213
214
return ;
214
215
}
@@ -228,7 +229,8 @@ function onStreamRead(arrayBuffer) {
228
229
if ( handle . readStop ) {
229
230
const err = handle . readStop ( ) ;
230
231
if ( err ) {
231
- // #34375 CallJSOnreadMethod expects the return value to be a buffer.
232
+ // CallJSOnreadMethod expects the return value to be a buffer.
233
+ // Ref: https://github.com/nodejs/node/pull/34375
232
234
stream . destroy ( errnoException ( err , 'read' ) ) ;
233
235
return ;
234
236
}
You can’t perform that action at this time.
0 commit comments