fixing bug with mixed dot and soak accessors

This commit is contained in:
Jeremy Ashkenas 2010-02-02 10:39:44 -05:00
parent 83285fe170
commit c5c841f2fc
2 changed files with 5 additions and 1 deletions

View File

@ -386,7 +386,9 @@ module CoffeeScript
parts[-1] << "#{SOAK}#{baseline += prop.compile(o)}"
end
else
parts << prop.compile(o)
part = prop.compile(o)
baseline += part
parts << part
end
end
@last = parts.last

View File

@ -41,6 +41,8 @@ obj: {
print obj?.prop is "hello"
print obj.prop?.length is 5
print obj?.prop?.non?.existent?.property is undefined