Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-407

Change in Google v8 TryCatch interface

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.4
    • Affects Version/s: 1.1.3
    • Component/s: JavaScript
    • None

      Recently, Google v8 TryCatch interface changed:

      'void* v8::TryCatch::next_' is now private
      url: http://code.google.com/p/v8/source/detail?r=3228
      diff: http://code.google.com/p/v8/source/diff?spec=svn3228&r=3228&format=side&path=/branches/bleeding_edge/include/v8.h
      This is a bleeding edge revision. By the way, the name suffix suggests it should not be used by client code.

      Mongo's affected file is scripting/v8_utils.cpp where there are 2 occurrences of TryCatch::next_ in:
      std::string toSTLString( const v8::TryCatch * try_catch )
      std::ostream& operator<<( std::ostream &s, const v8::TryCatch * try_catch )

      Do mongo really needs to loop over that private member ?
      mongo does not compile against the bleeding edge version of v8 unless we remove the loops

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            metagoto metagoto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: