1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-%typedarray%.prototype.join
5 description: Return the empty String if length is 0
7 22.2.3.15 %TypedArray%.prototype.join ( separator )
9 %TypedArray%.prototype.join is a distinct function that implements the same
10 algorithm as Array.prototype.join as defined in 22.1.3.13 except that the this
11 object's [[ArrayLength]] internal slot is accessed in place of performing a
14 22.1.3.13 Array.prototype.join (separator)
17 4. Let sep be ? ToString(separator).
18 5. If len is zero, return the empty String.
20 includes: [testTypedArray.js]
21 features: [TypedArray]
24 testWithTypedArrayConstructors(function(TA) {
25 var sample = new TA();
27 assert.sameValue(sample.join(), "");
28 assert.sameValue(sample.join("test262"), "");