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

Unified Diff: lib/src/compiler.dart

Issue 49223002: fix webui for sdk 0.8.7 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « lib/observe/set.dart ('k') | lib/src/html_css_fixup.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index d5914378b047dd127e12b41400f472a5cd0cb589..cd25ccf1e78daaac96bf113bfe04db24e4b5c6b4 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -6,7 +6,7 @@ library compiler;
import 'dart:async';
import 'dart:collection' show SplayTreeMap;
-import 'dart:json' as json;
+import 'dart:convert';
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
import 'package:csslib/visitor.dart' show StyleSheet, treeToDebugString;
import 'package:html5lib/dom.dart';
@@ -761,13 +761,13 @@ class Compiler {
var sourcePath = dartCodeUrl != null ? dartCodeUrl.resolvedPath : null;
output.add(new OutputFile(libPath, printer.text, source: sourcePath));
// Fix-up the paths in the source map file
- var sourceMap = json.parse(printer.map);
+ var sourceMap = JSON.decode(printer.map);
var urls = sourceMap['sources'];
for (int i = 0; i < urls.length; i++) {
urls[i] = path.relative(urls[i], from: dir);
}
output.add(new OutputFile(path.join(dir, '$filename.map'),
- json.stringify(sourceMap)));
+ JSON.encode(sourceMap)));
}
_time(String logMessage, String filePath, callback(),
« no previous file with comments | « lib/observe/set.dart ('k') | lib/src/html_css_fixup.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698