File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const {
18
18
} = primordials ;
19
19
20
20
const {
21
+ assignFunctionName,
21
22
kEnumerableProperty,
22
23
setOwnProperty,
23
24
} = require ( 'internal/util' ) ;
@@ -131,14 +132,14 @@ ObjectDefineProperty(
131
132
kCreateEvent ,
132
133
{
133
134
__proto__ : null ,
134
- value : function ( data , type ) {
135
+ value : assignFunctionName ( kCreateEvent , function ( data , type ) {
135
136
if ( type !== 'message' && type !== 'messageerror' ) {
136
137
return ReflectApply ( originalCreateEvent , this , arguments ) ;
137
138
}
138
139
const ports = this [ kCurrentlyReceivingPorts ] ;
139
140
this [ kCurrentlyReceivingPorts ] = undefined ;
140
141
return lazyMessageEvent ( type , { data, ports } ) ;
141
- } ,
142
+ } ) ,
142
143
configurable : false ,
143
144
writable : false ,
144
145
enumerable : false ,
You can’t perform that action at this time.
0 commit comments