Commit 7c69f0c9 authored by Michael Achenbach's avatar Michael Achenbach Committed by V8 LUCI CQ

[js-fuzzer] Replace more bogus assert output

Bug: chromium:1256831
Change-Id: I51a7872996849c42fdc75c1691c1e4103e2a45c2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3220349
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
Auto-Submit: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarAlmothana Athamneh <almuthanna@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77383}
parent 52bb3cae
...@@ -359,7 +359,7 @@ function removeComments(ast) { ...@@ -359,7 +359,7 @@ function removeComments(ast) {
*/ */
function cleanAsserts(ast) { function cleanAsserts(ast) {
function replace(string) { function replace(string) {
return string.replace(/Assert/g, 'A****t'); return string.replace(/[Aa]ssert/g, '*****t');
} }
babelTraverse(ast, { babelTraverse(ast, {
StringLiteral(path) { StringLiteral(path) {
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
console.log('/shell.js'); console.log('/shell.js');
if (!ok) if (!ok)
throw new Error(`Assertion failed: ${f} did not throw as expected`); throw new Error(`assertion failed: ${f} did not throw as expected`);
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// Original: spidermonkey/shell.js // Original: spidermonkey/shell.js
console.log('/shell.js'); console.log('/shell.js');
if (!ok) throw new Error(`A****tion failed: ${f} did not throw as expected`); if (!ok) throw new Error(`*****tion failed: ${f} did not throw as expected`);
// Original: spidermonkey/test/shell.js // Original: spidermonkey/test/shell.js
console.log('/test/shell.js'); console.log('/test/shell.js');
...@@ -17,5 +17,5 @@ console.log('load2.js'); ...@@ -17,5 +17,5 @@ console.log('load2.js');
// Original: spidermonkey/test/load.js // Original: spidermonkey/test/load.js
console.log('load.js'); console.log('load.js');
if (!ok) throw new Error(`A****tion failed: Some text`); if (!ok) throw new Error(`*****tion failed: Some text`);
print("A****tion failed: Some text"); print("*****tion failed: Some text");
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