blob: 58654b4694d5e42e6a4469ba8062e774ae0eecd7 [file] [log] [blame]
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-%typedarray%.from
description: >
Throws a TypeError if argument is a Symbol
info: |
9.4.5.9 IntegerIndexedElementSet ( O, index, value )
...
3. Let numValue be ? ToNumber(value).
...
includes: [testTypedArray.js]
features: [Symbol, TypedArray]
---*/
var s = Symbol("1");
testWithTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
TA.from([s]);
});
});