mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00: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
@@ -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