浏览代码

LibJS: Reflect Array.prototype.toLocaleString comment in %TypedArray%

This is an editorial change in the ECMA-262 spec.

See: https://github.com/tc39/ecma262/commit/2a9ed48
Linus Groh 3 年之前
父节点
当前提交
367e7b4fe5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp

@@ -1478,7 +1478,7 @@ JS_DEFINE_NATIVE_FUNCTION(TypedArrayPrototype::to_locale_string)
     // has a fixed length and whose integer-indexed properties are not sparse.
     // has a fixed length and whose integer-indexed properties are not sparse.
     auto length = typed_array->array_length();
     auto length = typed_array->array_length();
 
 
-    // 3. Let separator be the String value for the list-separator String appropriate for the host environment's current locale (this is derived in an implementation-defined way).
+    // 3. Let separator be the implementation-defined list-separator String value appropriate for the host environment's current locale (such as ", ").
     constexpr auto separator = ',';
     constexpr auto separator = ',';
 
 
     // 4. Let R be the empty String.
     // 4. Let R be the empty String.