We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b47f5a commit 8345a46Copy full SHA for 8345a46
lib/internal/worker/io.js
@@ -18,6 +18,7 @@ const {
18
} = primordials;
19
20
const {
21
+ assignFunctionName,
22
kEnumerableProperty,
23
setOwnProperty,
24
} = require('internal/util');
@@ -131,14 +132,14 @@ ObjectDefineProperty(
131
132
kCreateEvent,
133
{
134
__proto__: null,
- value: function(data, type) {
135
+ value: assignFunctionName(kCreateEvent, function(data, type) {
136
if (type !== 'message' && type !== 'messageerror') {
137
return ReflectApply(originalCreateEvent, this, arguments);
138
}
139
const ports = this[kCurrentlyReceivingPorts];
140
this[kCurrentlyReceivingPorts] = undefined;
141
return lazyMessageEvent(type, { data, ports });
- },
142
+ }),
143
configurable: false,
144
writable: false,
145
enumerable: false,
0 commit comments