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:
parent
83285fe170
commit
c5c841f2fc
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -41,6 +41,8 @@ obj: {
|
|||
|
||||
print obj?.prop is "hello"
|
||||
|
||||
print obj.prop?.length is 5
|
||||
|
||||
print obj?.prop?.non?.existent?.property is undefined
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue