1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:07:44 +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:
Luke Wilde 2022-09-09 19:30:45 +01:00 committed by Andreas Kling
parent ac60633694
commit 875ca2fb68
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ JS::NonnullGCPtr<AbortSignal> AbortSignal::create_with_global_object(HTML::Windo
AbortSignal::AbortSignal(HTML::Window& window)
: EventTarget(window.realm())
{
set_prototype(&window.cached_web_prototype("AbortSignal"));
}
// https://dom.spec.whatwg.org/#abortsignal-add

View file

@ -29,6 +29,7 @@ TextDecoder::TextDecoder(HTML::Window& window, TextCodec::Decoder& decoder, FlyS
, m_fatal(fatal)
, m_ignore_bom(ignore_bom)
{
set_prototype(&window.cached_web_prototype("TextDecoder"));
}
TextDecoder::~TextDecoder() = default;