fix indexing when accessing locals or args

Was missing the offset of object variables
This commit is contained in:
Torsten Ruger
2015-10-22 11:02:46 +03:00
parent a44b88f570
commit ede0fe5f16
6 changed files with 16 additions and 35 deletions

View File

@@ -56,6 +56,10 @@ module Parfait
names
end
def object_instance_length
self.get_length - 2
end
alias :list_index :index_of
# private inheritance is something to think off, we don't really want the list api exported
def index_of name