1 // |reftest| shell-option(--enable-uint8array-base64) skip-if(!Uint8Array.fromBase64||!xulRuntime.shell) -- uint8array-base64 is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2024 Kevin Gibbons. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-uint8array.fromhex
7 Uint8Array.fromHex is not a constructor function.
8 includes: [isConstructor.js]
9 features: [uint8array-base64, TypedArray, Reflect.construct]
12 assert(!isConstructor(Uint8Array.fromHex), "Uint8Array.fromHex is not a constructor");
14 assert.throws(TypeError, function() {
15 new Uint8Array.fromHex('');