fix comments in embedded code SERVER-2121

This commit is contained in:
Eliot Horowitz
2010-11-22 00:53:00 -05:00
parent 6ad12a6bea
commit 99647ebeb0
2 changed files with 12 additions and 4 deletions

View File

@@ -419,9 +419,17 @@ namespace mongo {
JSFunction * _compileFunction( const char * raw , JSObject * assoc , const char *& gcName ){
if ( ! assoc )
assoc = JS_GetGlobalObject( _context );
while ( raw[0] ){
while (isspace(*raw)) {
raw++;
}
while (isspace(*raw)) {
raw++;
if ( raw[0] != '/' || raw[1] != '/' )
break;
while ( raw[0] && raw[0] != '\n' )
raw++;
}
//cout << "RAW\n---\n" << raw << "\n---" << endl;