Commit 49f76875 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[scanner] Advance rather than setting c0_ to ' ' after skipping multiline comments

Change-Id: I62ddddf64d4de79765469e883295e246a18d7f84
Reviewed-on: https://chromium-review.googlesource.com/1177749Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55172}
parent 53c3c6a9
......@@ -508,11 +508,8 @@ Token::Value Scanner::SkipMultiLineComment() {
while (V8_UNLIKELY(c0_ == '*')) {
Advance();
// If we have reached the end of the multi-line comment, we
// consume the '/' and insert a whitespace. This way all
// multi-line comments are treated as whitespace.
if (c0_ == '/') {
c0_ = ' ';
Advance();
return Token::WHITESPACE;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment