We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e50b0da commit 83ced41Copy full SHA for 83ced41
lib/internal/util.js
@@ -861,7 +861,7 @@ for (let i = 0; i < encodings.length; ++i)
861
* @returns {Function} the same function, renamed
862
*/
863
function assignFunctionName(name, fn, descriptor = kEmptyObject) {
864
- if (typeof name === 'symbol') {
+ if (typeof name !== 'string') {
865
const symbolDescription = SymbolPrototypeGetDescription(name);
866
assert(symbolDescription !== undefined, 'Attempted to name function after descriptionless Symbol');
867
name = `[${symbolDescription}]`;
0 commit comments