v8/test/cctest/parsing
Marja Hölttä 4e45342994 [script streaming] Fix U+feff handling.
U+feff is the UTF BOM but if it occurs inside the text, it's a "zero-width
no-break space". However, the UTF-8 decoder in script streaming still thought
it's a BOM and skipped it. The correct way to handle it would be to create a
U+feff code point instead - the Scanner will then handle it as whitespace.

This is a discrepancy between the Blink UTF-8 decoder and the V8 UTF-8 decoder,
and caused the source positions be off by one. This bug went unnoticed, since
normally off-by-one in this situation doesn't make the code to break.

BUG=chromium:758508,chromium:758236

Change-Id: Ib92a3ee65c402e21b77e42537db2a021cff55379
Reviewed-on: https://chromium-review.googlesource.com/632096
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47583}
2017-08-24 19:35:12 +00:00
..
test-parse-decision.cc Start preparing test/cctest for jumbo compilation 2017-08-14 20:58:10 +00:00
test-preparser.cc [parser] Skipping inner funcs: drop "experimental" from flag name. 2017-08-16 08:49:27 +00:00
test-scanner-streams.cc [script streaming] Fix U+feff handling. 2017-08-24 19:35:12 +00:00
test-scanner.cc Start preparing test/cctest for jumbo compilation 2017-08-14 20:58:10 +00:00