mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:57:36 +00:00
LibWeb: Set prototype for both TextDecoder and AbortSignal
These were forgotten to be set during the GC heap conversion.
This commit is contained in:
parent
ac60633694
commit
875ca2fb68
2 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ JS::NonnullGCPtr<AbortSignal> AbortSignal::create_with_global_object(HTML::Windo
|
||||||
AbortSignal::AbortSignal(HTML::Window& window)
|
AbortSignal::AbortSignal(HTML::Window& window)
|
||||||
: EventTarget(window.realm())
|
: EventTarget(window.realm())
|
||||||
{
|
{
|
||||||
|
set_prototype(&window.cached_web_prototype("AbortSignal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#abortsignal-add
|
// https://dom.spec.whatwg.org/#abortsignal-add
|
||||||
|
|
|
@ -29,6 +29,7 @@ TextDecoder::TextDecoder(HTML::Window& window, TextCodec::Decoder& decoder, FlyS
|
||||||
, m_fatal(fatal)
|
, m_fatal(fatal)
|
||||||
, m_ignore_bom(ignore_bom)
|
, m_ignore_bom(ignore_bom)
|
||||||
{
|
{
|
||||||
|
set_prototype(&window.cached_web_prototype("TextDecoder"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TextDecoder::~TextDecoder() = default;
|
TextDecoder::~TextDecoder() = default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue