Skip to content

Commit 6d22294

Browse files
authored
Add Float16Array alias (#255)
This is a new typed array in the w3 spec. Since we don't have a specific type for this, we alias it to JSTypedArray.
1 parent 2fe754f commit 6d22294

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/generator/type_aliases.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ const idlOrBuiltinToJsTypeAliases = <String, String>{
2626
'Uint8ClampedArray': 'JSUint8ClampedArray',
2727
'Float32Array': 'JSFloat32Array',
2828
'Float64Array': 'JSFloat64Array',
29-
// TODO(srujzs): Change these aliases if we add these two as JS types.
29+
// TODO(srujzs): Change these aliases if we add these as JS types.
3030
'BigInt64Array': 'JSTypedArray',
3131
'BigUint64Array': 'JSTypedArray',
32+
'Float16Array': 'JSTypedArray',
3233

3334
// Array aliases.
3435
'sequence': 'JSArray',

0 commit comments

Comments
 (0)