Skip to content

Commit 7ce203d

Browse files
committed
Allow whitespace before function signatures in the legacy API
1 parent 5429e5d commit 7ce203d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/legacy/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function convertOptions<sync extends 'sync' | 'async'>(
131131
// does not.
132132
if (!signature.includes('(')) signature += '()';
133133

134-
functions[signature] = wrapFunction(self, callback, sync);
134+
functions[signature.trimLeft()] = wrapFunction(self, callback, sync);
135135
}
136136

137137
const importers =

0 commit comments

Comments
 (0)