summaryrefslogtreecommitdiff
path: root/deps/v8/src/js/typedarray.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/js/typedarray.js')
-rw-r--r--deps/v8/src/js/typedarray.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/src/js/typedarray.js b/deps/v8/src/js/typedarray.js
index 3d42498b03..2c25b6c58a 100644
--- a/deps/v8/src/js/typedarray.js
+++ b/deps/v8/src/js/typedarray.js
@@ -59,14 +59,16 @@ function ValidateTypedArray(array, methodName) {
// ES6 section 22.2.3.27
+// ecma402 #sup-array.prototype.tolocalestring
DEFINE_METHOD(
GlobalTypedArray.prototype,
toLocaleString() {
ValidateTypedArray(this, "%TypedArray%.prototype.toLocaleString");
+ var locales = arguments[0];
+ var options = arguments[1];
var length = %_TypedArrayGetLength(this);
-
- return InnerArrayToLocaleString(this, length);
+ return InnerArrayToLocaleString(this, length, locales, options);
}
);