Wrap BlockStatements in try..catch
falafel = require('falafel')
output = falafel code, (node)->
if node.type is 'BlockStatement'
node.update('{try{' + node.source()[1..-2] + '}catch(e){}}');
Written by Szikszai Gusztáv
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Coffeescript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#