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..156a9705275b14d75e8f1ee0f17386714a7f086f 100644 |
--- a/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart |
@@ -87,6 +87,7 @@ class MirrorRenamer { |
sb.write("'"); |
} |
sb.write('};'); |
+ sb.writeCharCode(0); // Terminate the string with '0', see [StringScanner]. |
topLevelNodes.add(parse(sb.toString())); |
// Replace calls to Mirrorsystem.getName with calls to helper function. |