/[jscoverage]/trunk/instrument-js.cpp
ViewVC logotype

Diff of /trunk/instrument-js.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 481 by siliconforks, Thu Oct 8 21:33:56 2009 UTC revision 483 by siliconforks, Thu Oct 8 23:53:18 2009 UTC
# Line 508  Line 508 
508        return;        return;
509      }      }
510    }    }
511    output_expression(function_node, f, false);  
512      // put parentheses around anything that isn't a name or dot
513      switch (function_node->pn_type) {
514      case TOK_NAME:
515      case TOK_DOT:
516    
517      // FIXME: TOK_FUNCTION is here because parentheses are already added in output_expression
518      case TOK_FUNCTION:
519    
520        output_expression(function_node, f, false);
521        break;
522      default:
523        Stream_write_char(f, '(');
524        output_expression(function_node, f, false);
525        Stream_write_char(f, ')');
526        break;
527      }
528    
529    output_function_arguments(node, f);    output_function_arguments(node, f);
530  }  }
531    

Legend:
Removed from v.481  
changed lines
  Added in v.483

  ViewVC Help
Powered by ViewVC 1.1.24