diff --git a/boa_engine/src/builtins/object/mod.rs b/boa_engine/src/builtins/object/mod.rs index 04873632726..a105005e026 100644 --- a/boa_engine/src/builtins/object/mod.rs +++ b/boa_engine/src/builtins/object/mod.rs @@ -57,7 +57,7 @@ impl BuiltIn for Object { .method(Self::has_own_property, "hasOwnProperty", 1) .method(Self::property_is_enumerable, "propertyIsEnumerable", 1) .method(Self::to_string, "toString", 0) - .method(Self::to_string, "toLocaleString", 0) + .method(Self::to_locale_string, "toLocaleString", 0) .method(Self::value_of, "valueOf", 0) .method(Self::is_prototype_of, "isPrototypeOf", 1) .static_method(Self::create, "create", 2)