Skip to content

Commit 53b35e6

Browse files
mkustermannCommit Queue
authored andcommitted
[dart2wasm] Fix missing local names in wasm serializer
There was a missing increment of an integer for the local names to be written out in the [0] refactoring. Once we have the wasm module reader checked-in, I could even write a regression test for it. [0] https://dart-review.googlesource.com/c/sdk/+/452040 Change-Id: I65367b6796a50f16db1c013c94bb1d413691e980 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452600 Reviewed-by: Ömer Ağacan <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
1 parent adaa736 commit 53b35e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/wasm_builder/lib/src/serialize/sections.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ class NameSection extends CustomSection {
453453
localNames.writeUnsigned(entry.key);
454454
localNames.writeName(entry.value);
455455
}
456+
functionsWithLocalNamesCount++;
456457
}
457458
}
458459
}

0 commit comments

Comments
 (0)