mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibWeb: Provide file name to JavaScript interpreter
This commit is contained in:
parent
6172cb3599
commit
8dca96fb61
4 changed files with 7 additions and 4 deletions
|
@ -157,7 +157,7 @@ public:
|
|||
|
||||
virtual JS::Interpreter& interpreter() override;
|
||||
|
||||
JS::Value run_javascript(const StringView&);
|
||||
JS::Value run_javascript(const StringView& source, const StringView& filename = "(unknown)");
|
||||
|
||||
NonnullRefPtr<Element> create_element(const String& tag_name);
|
||||
NonnullRefPtr<Element> create_element_ns(const String& namespace_, const String& qualifed_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue