mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
LibWeb: Use inline script tag source line as javascript line offset
This makes JS exception line numbers meaningful for inline script tags.
This commit is contained in:
committed by
Andreas Kling
parent
47d0d9fd65
commit
c575710e5e
Notes:
sideshowbarker
2024-07-17 17:28:07 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/c575710e5e Pull-request: https://github.com/SerenityOS/serenity/pull/13033
@@ -329,7 +329,7 @@ void HTMLScriptElement::prepare_script()
|
||||
// 1. Let script be the result of creating a classic script using source text, settings object, base URL, and options.
|
||||
|
||||
// FIXME: Pass settings, base URL and options.
|
||||
auto script = ClassicScript::create(m_document->url().to_string(), source_text, document().relevant_settings_object(), AK::URL());
|
||||
auto script = ClassicScript::create(m_document->url().to_string(), source_text, document().relevant_settings_object(), AK::URL(), m_source_line_number);
|
||||
|
||||
// 2. Set the script's script to script.
|
||||
m_script = script;
|
||||
|
||||
Reference in New Issue
Block a user