LibWeb: Do not use namespace in interface names

Gives us 20 additional WPT subtest passes in `wasm/jsapi`.
This commit is contained in:
Jelle Raaijmakers 2025-07-25 15:26:12 +02:00 committed by Jelle Raaijmakers
commit acc7c2f7f3
Notes: github-actions[bot] 2025-07-25 14:51:57 +00:00
3 changed files with 4 additions and 5 deletions

View file

@ -5169,7 +5169,7 @@ void @constructor_class@::initialize(JS::Realm& realm)
generator.append(R"~~~(
define_direct_property(vm.names.length, JS::Value(@constructor.length@), JS::Attribute::Configurable);
define_direct_property(vm.names.name, JS::PrimitiveString::create(vm, "@namespaced_name@"_string), JS::Attribute::Configurable);
define_direct_property(vm.names.name, JS::PrimitiveString::create(vm, "@name@"_string), JS::Attribute::Configurable);
define_direct_property(vm.names.prototype, &ensure_web_prototype<@prototype_class@>(realm, "@namespaced_name@"_fly_string), 0);
)~~~");

View file

@ -47,6 +47,6 @@ DataView
-------------
Hello from wasm!!!!!!
-------------
WebAssembly.Module
Module
-------------
Hello from wasm!!!!!!

View file

@ -2,9 +2,8 @@ Harness status: OK
Found 60 tests
59 Pass
1 Fail
Fail name
60 Pass
Pass name
Pass length
Pass No arguments
Pass Calling