fix comment parsing in v8
This commit is contained in:
@@ -258,7 +258,7 @@ namespace mongo {
|
||||
}
|
||||
|
||||
Local< v8::Function > V8Scope::__createFunction( const char * raw ){
|
||||
for(; isspace( *raw ); ++raw ); // skip whitespace
|
||||
raw = jsSkipWhiteSpace( raw );
|
||||
string code = raw;
|
||||
if ( !hasFunctionIdentifier( code ) ) {
|
||||
if ( code.find( "\n" ) == string::npos &&
|
||||
|
||||
Reference in New Issue
Block a user