[js-fuzzer] Update skipped files

This updates the file exceptions for js-fuzzer following the procedure
described at js_fuzzer/README.md.

This executed gen_exceptions.sh with the latest web_tests.zip archive.
FYI, the exceptions mark files with parse/mutation errors - i.e. the
fuzzer bails out and is ineffective on those files. It also marks
files not applicable in strict mode, which lets the fuzzer only
choose sloppy instead of bailing out. Some medium slow tests are
going to be chosen with lower probability.

This also fixes a bug in template literal replacements which reduces
the number of skipped test cases.

Change-Id: I39ae9b4c4f8dcff65226d49545eb50b1cbfe5c8c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4184213
Reviewed-by: Almothana Athamneh <almuthanna@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85471}
This commit is contained in:
Michael Achenbach 2023-01-23 10:48:25 +01:00 committed by V8 LUCI CQ
parent 325ea86f33
commit 856bdcddb9
5 changed files with 392 additions and 167 deletions

0
tools/clusterfuzz/js_fuzzer/gen_exceptions.sh Normal file → Executable file
View File

File diff suppressed because it is too large Load Diff

View File

@ -359,7 +359,7 @@ function removeComments(ast) {
*/
function cleanAsserts(ast) {
function replace(string) {
return string.replace(/[Aa]ssert/g, '*****t');
return string == null ? null : string.replace(/[Aa]ssert/g, '*****t');
}
babelTraverse(ast, {
StringLiteral(path) {

View File

@ -10,3 +10,6 @@ if (!ok)
throw new Error(`Assertion failed: Some text`);
print("Assertion failed: Some text");
// Check that we can load template literals with null cooked value.
check()`\01`;

View File

@ -19,3 +19,4 @@ console.log('load2.js');
console.log('load.js');
if (!ok) throw new Error(`*****tion failed: Some text`);
print("*****tion failed: Some text");
check()`\01`;