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 fbec895 commit fa21f83Copy full SHA for fa21f83
packages/svelte/src/compiler/utils/builders.js
@@ -659,24 +659,6 @@ export function throw_error(str) {
659
};
660
}
661
662
-/**
663
- * @param {ESTree.BlockStatement} body
664
- * @param {ESTree.BlockStatement} handler
665
- * @returns {ESTree.TryStatement}
666
- */
667
-export function try_catch(body, handler) {
668
- return {
669
- type: 'TryStatement',
670
- block: body,
671
- handler: {
672
- type: 'CatchClause',
673
- param: id('$$error'),
674
- body: handler
675
- },
676
- finalizer: null
677
- };
678
-}
679
-
680
export {
681
await_builder as await,
682
let_builder as let,
0 commit comments