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

Unified Diff: runtime/lib/convert_patch.dart

Issue 1971193002: Patches to support Dart VM patch files in dart2js. (Closed) Base URL: sso://user/ahe/dart-sdk@master
Patch Set: Created 4 years, 6 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 | « runtime/bin/socket_patch.dart ('k') | runtime/lib/core_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/convert_patch.dart
diff --git a/runtime/lib/convert_patch.dart b/runtime/lib/convert_patch.dart
index 3c50f2ac27b3e5333a8e0ae553606db16e2abaed..c5123bdddf4e7b911849e9bc4848ebf7f5f8f591 100644
--- a/runtime/lib/convert_patch.dart
+++ b/runtime/lib/convert_patch.dart
@@ -6,7 +6,7 @@ import "dart:_internal" show POWERS_OF_TEN;
// JSON conversion.
-patch _parseJson(String json, reviver(var key, var value)) {
+patch _parseJson(String source, reviver(key, value)) {
_BuildJsonListener listener;
if (reviver == null) {
listener = new _BuildJsonListener();
@@ -14,8 +14,8 @@ patch _parseJson(String json, reviver(var key, var value)) {
listener = new _ReviverJsonListener(reviver);
}
var parser = new _JsonStringParser(listener);
- parser.chunk = json;
- parser.chunkEnd = json.length;
+ parser.chunk = source;
+ parser.chunkEnd = source.length;
parser.parse(0);
parser.close();
return listener.result;
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698