mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibWeb/WebIDL: Store SimpleException message as a String{,View} variant
This commit is contained in:
parent
1032ac2453
commit
11b40dbcf5
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/linusg
Commit: 11b40dbcf5
Pull-request: https://github.com/SerenityOS/serenity/pull/17704
Reviewed-by: https://github.com/nico ✅
8 changed files with 28 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2021-2023, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -29,7 +29,7 @@ enum class SimpleExceptionType {
|
|||
|
||||
struct SimpleException {
|
||||
SimpleExceptionType type;
|
||||
DeprecatedString message;
|
||||
Variant<String, StringView> message;
|
||||
};
|
||||
|
||||
template<typename ValueType>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue