mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +00:00
LibJS: Replace PropertyKey(char[]) with PropertyKey(FlyString)
...and deal with the fallout.
This commit is contained in:
parent
d7908dbff5
commit
53da8893ac
Notes:
github-actions[bot]
2025-03-24 22:28:43 +00:00
Author: https://github.com/awesomekling
Commit: 53da8893ac
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4067
Reviewed-by: https://github.com/trflynn89
55 changed files with 254 additions and 251 deletions
|
@ -215,8 +215,8 @@ GC::Ref<WebIDL::Promise> IDBFactory::databases()
|
|||
// 2. Set info’s name dictionary member to db’s name.
|
||||
// 3. Set info’s version dictionary member to db’s version.
|
||||
auto info = JS::Object::create(realm, realm.intrinsics().object_prototype());
|
||||
MUST(info->create_data_property("name", JS::PrimitiveString::create(realm.vm(), db->name())));
|
||||
MUST(info->create_data_property("version", JS::Value(db->version())));
|
||||
MUST(info->create_data_property("name"_fly_string, JS::PrimitiveString::create(realm.vm(), db->name())));
|
||||
MUST(info->create_data_property("version"_fly_string, JS::Value(db->version())));
|
||||
|
||||
// 4. Append info to result.
|
||||
MUST(result->create_data_property_or_throw(i, info));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue