🐎 Avoid building unnecessary scope chains

This commit is contained in:
Max Brunsfeld
2016-07-11 13:51:08 -07:00
parent f327a4f95d
commit 1ecc61bebf
2 changed files with 10 additions and 2 deletions

View File

@@ -47,3 +47,11 @@ class ScopeDescriptor
toString: ->
@getScopeChain()
isEqual: (other) ->
if @scopes.length isnt other.scopes.length
return false
for scope, i in @scopes
if scope isnt other.scopes[i]
return false
true