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

Unified Diff: pkg/source_maps/lib/builder.dart

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 4 months 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/source_maps/lib/builder.dart
diff --git a/pkg/source_maps/lib/builder.dart b/pkg/source_maps/lib/builder.dart
index be00c9e81c63726f5cc8804bf64100c83dc3e702..12587cd84bf1ee2d235987e1310e36760b0016dc 100644
--- a/pkg/source_maps/lib/builder.dart
+++ b/pkg/source_maps/lib/builder.dart
@@ -7,8 +7,8 @@ library source_maps.builder;
// TODO(sigmund): add a builder for multi-section mappings.
-import 'dart:json' as json;
import 'dart:collection';
+import 'dart:convert';
import 'span.dart';
import 'src/vlq.dart';
@@ -108,7 +108,7 @@ class SourceMapBuilder {
}
/// Encodes all mappings added to this builder as a json string.
- String toJson(String fileUrl) => json.stringify(build(fileUrl));
+ String toJson(String fileUrl) => JSON.encode(build(fileUrl));
/// Get the index of [value] in [map], or create one if it doesn't exist.
int _indexOf(Map<String, int> map, String value) {

Powered by Google App Engine
This is Rietveld 408576698