mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 06:59:47 +00:00
LibWeb: Fix Request() TypeError message typo for mode='navigate'
The Request constructor’s mode validation threw "Mode must not be 'navigate" missing the closing quote. Add the trailing quote so the error reads: "Mode must not be 'navigate'".
This commit is contained in:
parent
faf3c19026
commit
bbb9159883
Notes:
github-actions[bot]
2025-09-15 07:20:42 +00:00
Author: https://github.com/shlyakpavel
Commit: bbb9159883
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6196
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ WebIDL::ExceptionOr<GC::Ref<Request>> Request::construct_impl(JS::Realm& realm,
|
|||
|
||||
// 17. If mode is "navigate", then throw a TypeError.
|
||||
if (mode == Infrastructure::Request::Mode::Navigate)
|
||||
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Mode must not be 'navigate"sv };
|
||||
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Mode must not be 'navigate'"sv };
|
||||
|
||||
// 18. If mode is non-null, set request’s mode to mode.
|
||||
if (mode.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue