Skip to content

Commit 8345a46

Browse files
committed
squash: rename more functions
1 parent 7b47f5a commit 8345a46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/worker/io.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const {
1818
} = primordials;
1919

2020
const {
21+
assignFunctionName,
2122
kEnumerableProperty,
2223
setOwnProperty,
2324
} = require('internal/util');
@@ -131,14 +132,14 @@ ObjectDefineProperty(
131132
kCreateEvent,
132133
{
133134
__proto__: null,
134-
value: function(data, type) {
135+
value: assignFunctionName(kCreateEvent, function(data, type) {
135136
if (type !== 'message' && type !== 'messageerror') {
136137
return ReflectApply(originalCreateEvent, this, arguments);
137138
}
138139
const ports = this[kCurrentlyReceivingPorts];
139140
this[kCurrentlyReceivingPorts] = undefined;
140141
return lazyMessageEvent(type, { data, ports });
141-
},
142+
}),
142143
configurable: false,
143144
writable: false,
144145
enumerable: false,

0 commit comments

Comments
 (0)