diff options
author | metagoto <runpac314@gmail.com> | 2009-11-14 10:41:02 +0800 |
---|---|---|
committer | Eliot <eliot@10gen.com> | 2009-11-24 11:41:49 +0800 |
commit | 3c71fb2ef96f8fe5655adef2afe513b6e88c9455 (patch) | |
tree | 6ce6ab157b1fe1bc3e1ac4dd5e952ffac6387b32 | |
parent | 498d87fe5b85c8bd3db9ecfb663e8ee53feebc71 (diff) | |
download | mongo-3c71fb2ef96f8fe5655adef2afe513b6e88c9455.tar.gz |
fix for V8 TryCatch change
-rw-r--r-- | scripting/v8_utils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripting/v8_utils.cpp b/scripting/v8_utils.cpp index 48b86976b7d..3229508f0c4 100644 --- a/scripting/v8_utils.cpp +++ b/scripting/v8_utils.cpp @@ -55,7 +55,7 @@ namespace mongo { stringstream ss; - while ( try_catch ){ + //while ( try_catch ){ v8::String::Utf8Value exception(try_catch->Exception()); Handle<v8::Message> message = try_catch->Message(); @@ -83,8 +83,8 @@ namespace mongo { ss << endl; } - try_catch = try_catch->next_; - } + //try_catch = try_catch->next_; + //} return ss.str(); } @@ -124,8 +124,8 @@ namespace mongo { cout << endl; } - if ( try_catch->next_ ) - s << try_catch->next_; + //if ( try_catch->next_ ) + // s << try_catch->next_; return s; } |