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: Throws a TypeError exception when invoked as a function
7 22.2.3.14 %TypedArray%.prototype.join ( separator )
9 This function is not generic. ValidateTypedArray is applied to the this value
10 prior to evaluating the algorithm. If its result is an abrupt completion that
11 exception is thrown instead of evaluating the algorithm.
13 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
15 1. If Type(O) is not Object, throw a TypeError exception.
16 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError
19 includes: [testTypedArray.js]
20 features: [TypedArray]
23 var join = TypedArray.prototype.join;
25 assert.sameValue(typeof join, 'function');
27 assert.throws(TypeError, function() {