1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

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