mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Add XMLHttpRequest.readyState and constants
This commit is contained in:
committed by
Andreas Kling
parent
3c9693c6c7
commit
602a36970f
Notes:
sideshowbarker
2024-07-19 07:23:21 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/602a36970fb Pull-request: https://github.com/SerenityOS/serenity/pull/1925 Reviewed-by: https://github.com/awesomekling
@@ -39,6 +39,12 @@ XMLHttpRequestConstructor::XMLHttpRequestConstructor()
|
||||
: NativeFunction(*interpreter().global_object().function_prototype())
|
||||
{
|
||||
put("length", JS::Value(1));
|
||||
|
||||
put("UNSENT", JS::Value((i32)XMLHttpRequest::ReadyState::Unsent));
|
||||
put("OPENED", JS::Value((i32)XMLHttpRequest::ReadyState::Opened));
|
||||
put("HEADERS_RECEIVED", JS::Value((i32)XMLHttpRequest::ReadyState::HeadersReceived));
|
||||
put("LOADING", JS::Value((i32)XMLHttpRequest::ReadyState::Loading));
|
||||
put("DONE", JS::Value((i32)XMLHttpRequest::ReadyState::Done));
|
||||
}
|
||||
|
||||
XMLHttpRequestConstructor::~XMLHttpRequestConstructor()
|
||||
|
||||
Reference in New Issue
Block a user