mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibJS: Move well-known symbols to the VM
No need to instantiate unique symbols for each Interpreter; they can be VM-global. This reduces the memory cost and startup time anyway.
This commit is contained in:
@@ -75,7 +75,7 @@ void MathObject::initialize(GlobalObject& global_object)
|
||||
define_property("SQRT1_2", Value(M_SQRT1_2), 0);
|
||||
define_property("SQRT2", Value(M_SQRT2), 0);
|
||||
|
||||
define_property(global_object.interpreter().well_known_symbol_to_string_tag(), js_string(global_object.heap(), "Math"), Attribute::Configurable);
|
||||
define_property(global_object.vm().well_known_symbol_to_string_tag(), js_string(global_object.heap(), "Math"), Attribute::Configurable);
|
||||
}
|
||||
|
||||
MathObject::~MathObject()
|
||||
|
||||
Reference in New Issue
Block a user