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 6eb20fd commit 133598aCopy full SHA for 133598a
packages/svelte/src/compiler/utils/builders.js
@@ -89,24 +89,6 @@ export function block(body) {
89
return { type: 'BlockStatement', body };
90
}
91
92
-/**
93
- * @param {ESTree.BlockStatement} block
94
- * @param {ESTree.Pattern | null} param
95
- * @param {ESTree.BlockStatement} catch_block
96
- * @returns {ESTree.TryStatement}
97
- */
98
-export function try_catch(block, param, catch_block) {
99
- return {
100
- type: 'TryStatement',
101
- block,
102
- handler: {
103
- type: 'CatchClause',
104
- param,
105
- body: catch_block
106
- }
107
- };
108
-}
109
-
110
/**
111
* @param {string} name
112
* @param {ESTree.Statement} body
0 commit comments