fix object grow

and write a test (and another one …)
This commit is contained in:
Torsten Ruger
2015-05-17 14:44:48 +03:00
parent 1114f06921
commit 701b0bc011
3 changed files with 7 additions and 2 deletions

View File

@ -58,8 +58,7 @@ module Parfait
old_length = internal_object_length()
while( old_length < length )
internal_object_set( old_length + 1, nil)
old_length = old_length + 1
end
end
end