Permalink
Browse files

My idea

  • Loading branch information...
1 parent e359f21 commit c7732db305b0fedb5a8359718a81e280337ee8c9 @jhs committed Feb 6, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 tri.js
View
@@ -0,0 +1,16 @@
+// My idea
+tri({
+ "try": function() {
+ console.log('this = ' + this);
+ this_is_protected();
+ },
+ "catch": function(e) {
+ it_failed({"exception_was": e});
+ },
+ "else": function() {
+ it_worked();
+ },
+ "finally": function() {
+ this_always_runs();
+ }
+})

0 comments on commit c7732db

Please sign in to comment.