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%.from
6 "from" cannot be invoked as a function
8 22.2.2.1 %TypedArray%.from ( source [ , mapfn [ , thisArg ] ] )
10 1. Let C be the this value.
11 2. If IsConstructor(C) is false, throw a TypeError exception.
13 includes: [testTypedArray.js]
14 features: [TypedArray]
17 var from = TypedArray.from;
19 assert.throws(TypeError, function() {