Loading ...
Sorry, an error occurred while loading the content.

Re: Crash when extend(o, o)

Expand Messages
  • Bram Moolenaar
    ... Thanks! I will look into it soon. -- Living on Earth includes an annual free trip around the Sun. /// Bram Moolenaar -- Bram@Moolenaar.net --
    Message 1 of 5 , May 6, 2012
    • 0 Attachment
      Hirohito Higashi wrote:

      > 2012/5/3 (Thu) 3:55:50 UTC+9 Bram Moolenaar:
      > > 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?
      >
      > Hi Bram,
      >
      > Patch modified and test added.
      > eval.c patch author is Thinca.
      > test patch author is me.
      > (I have got consent from Yasuhiro Matsumoto.)

      Thanks! I will look into it soon.

      --
      Living on Earth includes an annual free trip around the Sun.

      /// Bram Moolenaar -- Bram@... -- 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
    Your message has been successfully submitted and would be delivered to recipients shortly.