diff --git a/src/nodes.coffee b/src/nodes.coffee index 94afb73d..e8bfc3d1 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -1892,11 +1892,10 @@ exports.Try = class Try extends Base # is optional, the *catch* is not. compileNode: (o) -> o.indent += TAB - scope = o.scope tryPart = @attempt.compileToFragments o, LEVEL_TOP catchPart = if @recovery - generatedErrorVariableName = scope.freeVariable 'error' + generatedErrorVariableName = o.scope.freeVariable 'error' placeholder = new Literal generatedErrorVariableName @recovery.unshift new Assign @errorVariable, placeholder if @errorVariable [].concat @makeCode(" catch ("), placeholder.compileToFragments(o), @makeCode(") {\n"),