little further
This commit is contained in:
parent
19c44c9b62
commit
d61aaf393a
|
@ -1036,7 +1036,7 @@
|
||||||
TryNode = (exports.TryNode = inherit(Node, {
|
TryNode = (exports.TryNode = inherit(Node, {
|
||||||
type: 'Try',
|
type: 'Try',
|
||||||
constructor: function constructor(attempt, error, recovery, ensure) {
|
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;
|
this.error = error;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
|
@ -802,7 +802,7 @@ TryNode: exports.TryNode: inherit Node, {
|
||||||
type: 'Try'
|
type: 'Try'
|
||||||
|
|
||||||
constructor: (attempt, error, recovery, ensure) ->
|
constructor: (attempt, error, recovery, ensure) ->
|
||||||
@children: [@attempt: attempt, @recovery: recovery, @ensure: ensure]
|
@children: compact [@attempt: attempt, @recovery: recovery, @ensure: ensure]
|
||||||
@error: error
|
@error: error
|
||||||
this
|
this
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue