blob: 71e7d1c294ee56102b4c65c3a163d6733083f96e [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 casting undefined value from sparse array to BigInt
includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/
var source = [,42n];
testWithBigIntTypedArrayConstructors(function(TA) {
assert.throws(TypeError, function() {
TA.from(source);
});
});