Yasohiro Matsumoto wrote:

> When passing same Dictionary/List to expand(), it breaks reference counter.
> 
> let o = {"a":{"b":"B"}}
> call  extend(o, o)
> echo o.a.b <= crash
> 
> https://gist.github.com/2578755
> 
> Please check and include.

Thanks for the fix!  Can you also write a test for this?

-- 
Snoring is prohibited unless all bedroom windows are closed and securely
locked.
                [real standing law in Massachusetts, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui