Commit 5b5a5192 authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

[coverage] Add a test to document crbug/v8/10628

Just a test for now to document how trailing space after async
functions is not removed by SourceRangeAstVisitor.

Bug: v8:10628
Change-Id: I40f0d911c59540ea835c807a2be5b0d1488291d9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2259852
Auto-Submit: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68476}
parent e63ca158
...@@ -136,4 +136,23 @@ test().then(r => r.bar()); // 0350 ...@@ -136,4 +136,23 @@ test().then(r => r.bar()); // 0350
{"start":152,"end":253,"count":1}, {"start":152,"end":253,"count":1},
{"start":362,"end":374,"count":1}]); {"start":362,"end":374,"count":1}]);
// Documents the open bug that causes trailing space after `finally`
// not to be removed by SourceRangeAstVisitor.
TestCoverage(
"https://crbug.com/v8/10628",
`
async function abc() { // 0000
try { // 0050
return 'abc'; // 0100
} finally { // 0150
console.log('in finally'); // 0200
} // 0250
} // 0300
abc(); // 0350
%PerformMicrotaskCheckpoint(); // 0400
`,
[{"start":0,"end":449,"count":1},
{"start":0,"end":301,"count":1},
{"start":252,"end":300,"count":0}]);
%DebugToggleBlockCoverage(false); %DebugToggleBlockCoverage(false);
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