LibWeb: Add WebAssembly.Global and exports support for global instances

This commit is contained in:
Andrew Kaster 2024-12-23 14:47:25 -07:00 committed by Ali Mohammad Pur
commit 44e3817219
Notes: github-actions[bot] 2024-12-24 14:21:40 +00:00
10 changed files with 268 additions and 4 deletions

View file

@ -294,7 +294,7 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
static ByteString make_input_acceptable_cpp(ByteString const& input)
{
if (input.is_one_of("class", "template", "for", "default", "char", "namespace", "delete", "inline", "register", "switch")) {
if (input.is_one_of("class", "template", "for", "default", "char", "namespace", "delete", "inline", "register", "switch", "mutable")) {
StringBuilder builder;
builder.append(input);
builder.append('_');