
It's a lot easier to debug JavaScript problems if you can see which file the errors are in. :^)
30 lines
572 B
C++
30 lines
572 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/RefCounted.h>
|
|
#include <AK/URL.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-script
|
|
class Script : public RefCounted<Script> {
|
|
public:
|
|
virtual ~Script();
|
|
|
|
URL const& base_url() const { return m_base_url; }
|
|
String const& filename() const { return m_filename; }
|
|
|
|
protected:
|
|
Script(URL base_url, String filename);
|
|
|
|
private:
|
|
URL m_base_url;
|
|
String m_filename;
|
|
};
|
|
|
|
}
|