mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
|
@ -36,15 +36,15 @@ void $262Object::initialize(Realm& realm)
|
|||
m_is_htmldda = realm.create<IsHTMLDDA>(realm);
|
||||
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
define_native_function(realm, "clearKeptObjects", clear_kept_objects, 0, attr);
|
||||
define_native_function(realm, "createRealm", create_realm, 0, attr);
|
||||
define_native_function(realm, "detachArrayBuffer", detach_array_buffer, 1, attr);
|
||||
define_native_function(realm, "evalScript", eval_script, 1, attr);
|
||||
define_native_function(realm, "clearKeptObjects"_fly_string, clear_kept_objects, 0, attr);
|
||||
define_native_function(realm, "createRealm"_fly_string, create_realm, 0, attr);
|
||||
define_native_function(realm, "detachArrayBuffer"_fly_string, detach_array_buffer, 1, attr);
|
||||
define_native_function(realm, "evalScript"_fly_string, eval_script, 1, attr);
|
||||
|
||||
define_direct_property("agent", m_agent, attr);
|
||||
define_direct_property("gc", realm.global_object().get_without_side_effects("gc"), attr);
|
||||
define_direct_property("global", &realm.global_object(), attr);
|
||||
define_direct_property("IsHTMLDDA", m_is_htmldda, attr);
|
||||
define_direct_property("agent"_fly_string, m_agent, attr);
|
||||
define_direct_property("gc"_fly_string, realm.global_object().get_without_side_effects("gc"_fly_string), attr);
|
||||
define_direct_property("global"_fly_string, &realm.global_object(), attr);
|
||||
define_direct_property("IsHTMLDDA"_fly_string, m_is_htmldda, attr);
|
||||
}
|
||||
|
||||
void $262Object::visit_edges(Cell::Visitor& visitor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue