mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +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:
parent
47d0d9fd65
commit
c575710e5e
Notes:
sideshowbarker
2024-07-17 17:28:07 +09:00
Author: https://github.com/IdanHo
Commit: c575710e5e
Pull-request: https://github.com/SerenityOS/serenity/pull/13033
7 changed files with 12 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue