Index: sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart b/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart |
index 8b06802f75968006c6f681bf9f7f402d9d08045d..e57aeabd0036bf313310091c77918f9525ac7a99 100644 |
--- a/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart |
@@ -86,7 +86,7 @@ class MirrorRenamer { |
sb.write(symbols[mangledName]); |
sb.write("'"); |
} |
- sb.write('};'); |
+ sb.write('};\x00'); // Terminate the string with '0', see [StringScanner]. |
topLevelNodes.add(parse(sb.toString())); |
// Replace calls to Mirrorsystem.getName with calls to helper function. |