fix spidermonkey error handling SERVER-515

This commit is contained in:
Eliot Horowitz
2010-01-14 23:57:07 -05:00
parent 2ca97f6623
commit f8be8a7529
3 changed files with 25 additions and 11 deletions

View File

@@ -26,6 +26,12 @@
#define assert xassert
#endif
#define smuassert( cx , msg , val ) \
if ( ! ( val ) ){ \
JS_ReportError( cx , msg ); \
return JS_FALSE; \
}
namespace mongo {
string trim( string s ){