Add test to ensure caught error's scope is retricted to catch block
Add test to ensure caught error's scope is retricted to catch block

Issue #754

neoclide/tern,othree/tern,emacsmirror/tern,MarcelGerber/tern,albertinad/tern,othree/tern,albertinad/tern,MarcelGerber/tern,marijnh/tern,MarcelGerber/tern,neoclide/tern,ternjs/tern,fileability/tern,emacsmirror/tern,ternjs/tern,fileability/tern,othree/tern,marijnh/tern,emacsmirror/tern,albertinad/tern,ternjs/tern,fileability/tern,neoclide/tern,marijnh/tern