1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

LibJS: Prefer FunctionDeclaration if a statement begins with "function"

This commit is contained in:
Andreas Kling 2020-03-19 18:07:07 +01:00
parent 1a10470c1d
commit 73d28a0551
2 changed files with 4 additions and 7 deletions

View file

@ -2,10 +2,9 @@
<html>
<head>
<script>
function foo() {
document.addEventListener("DOMContentLoaded", function() {
alert("It loaded!");
}
document.addEventListener("DOMContentLoaded", foo);
);
function on_mousedown() {
alert("Mouse down!");