Removing duplicate 'CATCH'

This commit is contained in:
Jeremy Ashkenas 2013-03-01 12:38:41 +13:00
parent a48ca260bd
commit f33517368e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)