mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-18 21:55:45 +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
@@ -40,6 +40,8 @@ public:
|
||||
return type.is_one_of("classic", "module");
|
||||
}
|
||||
|
||||
void set_source_line_number(Badge<HTMLParser>, size_t source_line_number) { m_source_line_number = source_line_number; }
|
||||
|
||||
private:
|
||||
void prepare_script();
|
||||
void script_became_ready();
|
||||
@@ -66,6 +68,8 @@ private:
|
||||
RefPtr<Script> m_script;
|
||||
|
||||
Optional<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer;
|
||||
|
||||
size_t m_source_line_number { 1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user