File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,12 +34,18 @@ export const illegalArgumentLists = [
3434 { description : "typed array (int16)" , value : new Int16Array ( ) } ,
3535 { description : "typed array (int32)" , value : new Int32Array ( ) } ,
3636 { description : "typed array (int64)" , value : new BigInt64Array ( ) } ,
37- { description : "typed array (float16)" , value : new Float16Array ( ) } ,
3837 { description : "typed array (float32)" , value : new Float32Array ( ) } ,
3938 { description : "typed array (float64)" , value : new Float64Array ( ) } ,
4039 { description : "typed array (clamped)" , value : new Uint8ClampedArray ( ) } ,
4140] ;
4241
42+ if ( Object . prototype . hasOwnProperty . call ( globalThis , "Float16Array" ) ) {
43+ illegalArgumentLists . push ( {
44+ description : "typed array (float16)" ,
45+ value : new Float16Array ( ) ,
46+ } ) ;
47+ }
48+
4349/* OS platforms (based on https://nodejs.org/api/os.html#osplatform) */
4450export const osAix = "aix" ;
4551export const osDarwin = "darwin" ;
You can’t perform that action at this time.
0 commit comments