mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
LibJS: Replace two instances of 'global_object.vm()' with just 'vm'
This commit is contained in:
parent
75a12bc2b7
commit
ed64a69fb2
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ void ArrayIteratorPrototype::initialize(GlobalObject& global_object)
|
|||
Object::initialize(global_object);
|
||||
|
||||
define_native_function(vm.names.next, next, 0, Attribute::Configurable | Attribute::Writable);
|
||||
define_property(global_object.vm().well_known_symbol_to_string_tag(), js_string(global_object.heap(), "Array Iterator"), Attribute::Configurable);
|
||||
define_property(vm.well_known_symbol_to_string_tag(), js_string(global_object.heap(), "Array Iterator"), Attribute::Configurable);
|
||||
}
|
||||
|
||||
ArrayIteratorPrototype::~ArrayIteratorPrototype()
|
||||
|
|
|
@ -66,7 +66,7 @@ JS_DEFINE_NATIVE_FUNCTION(ObjectPrototype::to_string)
|
|||
return {};
|
||||
|
||||
String tag;
|
||||
auto to_string_tag = this_object->get(global_object.vm().well_known_symbol_to_string_tag());
|
||||
auto to_string_tag = this_object->get(vm.well_known_symbol_to_string_tag());
|
||||
|
||||
if (to_string_tag.is_string()) {
|
||||
tag = to_string_tag.as_string().string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue