From f33517368e349b082a54a8ea6fcc0f5326e0a196 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 1 Mar 2013 12:38:41 +1300 Subject: [PATCH] Removing duplicate 'CATCH' --- lib/coffee-script/rewriter.js | 2 +- src/rewriter.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/coffee-script/rewriter.js b/lib/coffee-script/rewriter.js index 5dd31b79..76945c5a 100644 --- a/lib/coffee-script/rewriter.js +++ b/lib/coffee-script/rewriter.js @@ -230,7 +230,7 @@ tokens.splice(i, 0, generate('}', '}')); return i += 1; }; - if (inImplicitCall() && (tag === 'IF' || tag === 'TRY' || tag === 'FINALLY' || tag === 'CATCH' || tag === 'CLASS' || tag === 'SWITCH' || tag === 'CATCH')) { + if (inImplicitCall() && (tag === 'IF' || tag === 'TRY' || tag === 'FINALLY' || tag === 'CATCH' || tag === 'CLASS' || tag === 'SWITCH')) { stack.push([ 'CONTROL', i, { ours: true diff --git a/src/rewriter.coffee b/src/rewriter.coffee index 3eac881c..5ac4342a 100644 --- a/src/rewriter.coffee +++ b/src/rewriter.coffee @@ -180,7 +180,7 @@ class exports.Rewriter # Don't end an implicit call on next indent if any of these are in an argument if inImplicitCall() and tag in ['IF', 'TRY', 'FINALLY', 'CATCH', - 'CLASS', 'SWITCH', 'CATCH'] + 'CLASS', 'SWITCH'] stack.push ['CONTROL', i, ours: true] return forward(1)