diff options
author | Alexander <electrodeyt@gmail.com> | 2021-07-19 17:59:20 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-20 16:20:59 +0200 |
commit | d528c9c2eee7523e5b505676a92046009dd3d2f4 (patch) | |
tree | af92815c3d6abc079c9a4795d31b6d2f894143f4 /Userland/Libraries/LibWeb | |
parent | e3fa32b2adab37bb2808cdcc8364ebe9109a6bb2 (diff) | |
download | serenity-d528c9c2eee7523e5b505676a92046009dd3d2f4.zip |
LibWeb: Don't print JavaScript syntax error hints
This uses the new flag in print_errors to not print hints. This
decreases the load time of JavaScript heavy webpages with many errors
significantly.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 8c3a1711dc..0680b0d404 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -673,7 +673,7 @@ JS::Value Document::run_javascript(const StringView& source, const StringView& f auto parser = JS::Parser(JS::Lexer(source, filename)); auto program = parser.parse_program(); if (parser.has_errors()) { - parser.print_errors(); + parser.print_errors(false); return JS::js_undefined(); } auto& interpreter = document().interpreter(); |