LibWeb: Add a clarifying comment to XHR::m_response_object

Trying to change this to a JS::Object didn't quite work, so let's add
a helpful comment instead.
This commit is contained in:
Linus Groh 2022-11-13 14:37:53 +00:00
commit bfa378660b
Notes: sideshowbarker 2024-07-17 04:29:40 +09:00

View file

@ -161,6 +161,7 @@ private:
// https://xhr.spec.whatwg.org/#response-object
// response object
// An object, failure, or null, initially null.
// NOTE: This needs to be a JS::Value as the JSON response might not actually be an object.
Variant<JS::Value, Failure, Empty> m_response_object;
// FIXME: https://xhr.spec.whatwg.org/#xmlhttprequest-fetch-controller