mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibWeb/WebIDL: Store SimpleException message as a String{,View} variant
This commit is contained in:
parent
1032ac2453
commit
11b40dbcf5
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