 Chromium Code Reviews
 Chromium Code Reviews Issue 385136:
  Step next should respect do/while condition block.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
    
  
    Issue 385136:
  Step next should respect do/while condition block.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/| Index: src/parser.cc | 
| =================================================================== | 
| --- src/parser.cc (revision 3310) | 
| +++ src/parser.cc (working copy) | 
| @@ -2542,6 +2542,12 @@ | 
| Statement* body = ParseStatement(NULL, CHECK_OK); | 
| Expect(Token::WHILE, CHECK_OK); | 
| Expect(Token::LPAREN, CHECK_OK); | 
| + | 
| + if (loop != NULL) { | 
| + int position = scanner().location().beg_pos; | 
| + loop->set_condition_position(position); | 
| + } | 
| + | 
| Expression* cond = ParseExpression(true, CHECK_OK); | 
| Expect(Token::RPAREN, CHECK_OK); |