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.
serializeFunction
1 parent 0ef6c72 commit b2a35d2Copy full SHA for b2a35d2
packages/utils/src/serialize.js
@@ -48,5 +48,5 @@ export function serializeFunction (func) {
48
.replace('function function', 'function')
49
}
50
51
-serializeFunction.internalFunctionRE = /^(\s*)(?!(?:if)|(?:for)|(?:while)|(?:switch))(\w+)\s*\((.*?)\)\s*\{/gm
+serializeFunction.internalFunctionRE = /^(\s*)(?!(?:if)|(?:for)|(?:while)|(?:switch)|(?:catch))(\w+)\s*\((.*?)\)\s*\{/gm
52
serializeFunction.assignmentRE = /^(\s*):(\w+)\(/gm
0 commit comments