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 bf0c536 commit c74f88eCopy full SHA for c74f88e
lib/asbind-instance/bind-function.js
@@ -72,15 +72,19 @@ const converters = new Map([
72
]
73
]);
74
75
+const warned = new Set();
76
function getConverterForType(typeName) {
77
for (const [matcher, converter] of converters) {
78
if (matcher.test(typeName)) {
79
return converter;
80
}
81
- console.warn(
82
- `No converter for ${JSON.stringify(typeName)}, using pass-through`
83
- );
+ if (!warned.has(typeName)) {
+ console.warn(
84
+ `No converter for ${JSON.stringify(typeName)}, using pass-through`
85
+ );
86
+ warned.add(typeName);
87
+ }
88
return { ascToJs: nop, jsToAsc: nop };
89
90
0 commit comments