little further

This commit is contained in:
Jeremy Ashkenas 2010-02-12 17:31:23 -05:00
parent 19c44c9b62
commit d61aaf393a
2 changed files with 2 additions and 2 deletions

View File

@ -1036,7 +1036,7 @@
TryNode = (exports.TryNode = inherit(Node, {
type: 'Try',
constructor: function constructor(attempt, error, recovery, ensure) {
this.children = [(this.attempt = attempt), (this.recovery = recovery), (this.ensure = ensure)];
this.children = compact([(this.attempt = attempt), (this.recovery = recovery), (this.ensure = ensure)]);
this.error = error;
return this;
},

View File

@ -802,7 +802,7 @@ TryNode: exports.TryNode: inherit Node, {
type: 'Try'
constructor: (attempt, error, recovery, ensure) ->
@children: [@attempt: attempt, @recovery: recovery, @ensure: ensure]
@children: compact [@attempt: attempt, @recovery: recovery, @ensure: ensure]
@error: error
this