Skip to content

Commit b03bea1

Browse files
committed
Code and commentary diverged in that short time. Fix.
1 parent 2f13fae commit b03bea1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scope.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ exports.Scope = class Scope
3535
# super class. This can get complicated if super is being called
3636
# from a closure. getMethodRecurse() will walk up the scope
3737
# tree until it finds the first method object that has a name filled
38-
# in. It will return an empty method object if none was found
38+
# in. It will return the topmost method object otherwise, which may
39+
# be null if this is being called from outside a function.
3940
getMethodRecurse: ->
4041
if @method?.name? then @method
4142
else if @parent then @parent.getMethodRecurse()

0 commit comments

Comments
 (0)