Skip to content

Commit

Permalink
report-clips-sample.https.html: Remove redundant return in function s…
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-wang authored Dec 10, 2024
1 parent 0ed00e4 commit 7cabcdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}, `Unsafe indirect eval violation sample is clipped to ${trimmedSampleLength} characters.`);

const functionBody = "return '1234567890123456789012345678901234567890';";
const sampleWithoutFunctionPrefix = `(a,b\n) {\nreturn ${functionBody}\n}`;
const sampleWithoutFunctionPrefix = `(a,b\n) {\n${functionBody}\n}`;

promise_test(t => {
assert_throws_js(EvalError, _ => {
Expand Down

0 comments on commit 7cabcdc

Please sign in to comment.