Skip to content

Commit 5956132

Browse files
srawlinsCommit Queue
authored and
Commit Queue
committed
[dartfuzz] Remove duplicate map keys
In dartfuzz_api_table.dart, both `DartType.VOID` and `DartType.VOID_NULLABLE` are added to the Map keys. At runtime, the last value for a given key wins, so I removed the `DartType.VOID` key-value pair. In gen_api_table.dart, both `assertionErrorEncoding` and `errorEncoding` are added to the Map keys. At runtime, the last value for a given key wins, so I removed the `assertionErrorEncoding` key-value pair. This CL should be a no-op. Bug: #50796 Change-Id: Ifcfeb3e84930267f60efd2eb009a722f8ac2453e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279234 Reviewed-by: Tess Strickland <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 5fe2f3b commit 5956132

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

runtime/tools/dartfuzz/dartfuzz_api_table.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class DartLib {
8686
DartType.UINT8CLAMPEDLIST_NULLABLE: uint8ClampedListLibsNullable,
8787
DartType.UINT8LIST: uint8ListLibs,
8888
DartType.UINT8LIST_NULLABLE: uint8ListLibsNullable,
89-
DartType.VOID: voidLibs,
9089
DartType.VOID_NULLABLE: voidLibsNullable,
9190
};
9291
static const typedDataFloatTypes = [

runtime/tools/dartfuzz/gen_api_table.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ final Map<String, String> typeToLibraryMethodsListName = () {
167167
abstractClassInstantiationErrorEncoding:
168168
abstractClassInstantiationErrorLibs,
169169
argumentErrorEncoding: argumentErrorLibs,
170-
assertionErrorEncoding: assertionErrorLibs,
171170
boolEncoding: boolLibs,
172171
byteDataEncoding: byteDataLibs,
173172
castErrorEncoding: castErrorLibs,

0 commit comments

Comments
 (0)