1 // |reftest| skip -- Float16Array is not supported
2 // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-dataview.prototype.getfloat16
7 description: Throws a TypeError if this is not Object
8 features: [Float16Array, Symbol]
11 var getFloat16 = DataView.prototype.getFloat16;
13 assert.throws(TypeError, function() {
14 getFloat16.call(undefined);
17 assert.throws(TypeError, function() {
18 getFloat16.call(null);
21 assert.throws(TypeError, function() {
25 assert.throws(TypeError, function() {
26 getFloat16.call("string");
29 assert.throws(TypeError, function() {
30 getFloat16.call(true);
33 assert.throws(TypeError, function() {
34 getFloat16.call(false);
38 assert.throws(TypeError, function() {