From 1d727f5f226e28484b985b4e7c368df1c39a9023 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 1 Apr 2014 12:32:08 +0900 Subject: Add try/catch/finally --- template/javascript/snip-try-catch-finally.js | 6 ++++++ template/javascript/snip-try-catch.js | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 template/javascript/snip-try-catch-finally.js create mode 100644 template/javascript/snip-try-catch.js diff --git a/template/javascript/snip-try-catch-finally.js b/template/javascript/snip-try-catch-finally.js new file mode 100644 index 0000000..959276f --- /dev/null +++ b/template/javascript/snip-try-catch-finally.js @@ -0,0 +1,6 @@ +try { + {{_cursor_}} +} catch(e) { +} finally { +} + diff --git a/template/javascript/snip-try-catch.js b/template/javascript/snip-try-catch.js new file mode 100644 index 0000000..88c806d --- /dev/null +++ b/template/javascript/snip-try-catch.js @@ -0,0 +1,5 @@ +try { + {{_cursor_}} +} catch(e) { +} + -- cgit v1.2.3-54-g00ecf