mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
LibJS: Use VM::names for Object::invoke() function names
This commit is contained in:
parent
52fff644d5
commit
c41d340983
2 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayPrototype::to_locale_string)
|
|||
auto* value_object = value.to_object(global_object);
|
||||
if (!value_object)
|
||||
return {};
|
||||
auto locale_string_result = value_object->invoke("toLocaleString");
|
||||
auto locale_string_result = value_object->invoke(vm.names.toLocaleString);
|
||||
if (vm.exception())
|
||||
return {};
|
||||
auto string = locale_string_result.to_string(global_object);
|
||||
|
|
|
@ -119,7 +119,7 @@ JS_DEFINE_NATIVE_FUNCTION(ObjectPrototype::to_locale_string)
|
|||
auto* this_object = vm.this_value(global_object).to_object(global_object);
|
||||
if (!this_object)
|
||||
return {};
|
||||
return this_object->invoke("toString");
|
||||
return this_object->invoke(vm.names.toString);
|
||||
}
|
||||
|
||||
JS_DEFINE_NATIVE_FUNCTION(ObjectPrototype::value_of)
|
||||
|
|
Loading…
Add table
Reference in a new issue