Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: pkg/analyzer/lib/src/summary/builder.dart

Issue 1420053011: Introduce code to generate summaries from an element model. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review comments. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/summary/builder.dart
diff --git a/pkg/analyzer/lib/src/summary/builder.dart b/pkg/analyzer/lib/src/summary/builder.dart
index e88004a19db9679787321132a264e6dd89eaad1a..5f8965ce11773c0e3a4a66b4a18a07f444e9f508 100644
--- a/pkg/analyzer/lib/src/summary/builder.dart
+++ b/pkg/analyzer/lib/src/summary/builder.dart
@@ -22,6 +22,6 @@ class BuilderContext {
* serialized form as a buffer.
*/
List<int> getBuffer(Object ref) {
- return JSON.encode(ref).codeUnits;
+ return UTF8.encode(JSON.encode(ref));
}
}

Powered by Google App Engine
This is Rietveld 408576698