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

Unified Diff: runtime/lib/json_patch.dart

Issue 12314055: Use browsers JSON.parse for parsing JSON (#3) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | runtime/lib/json_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/json_patch.dart
diff --git a/tests/lib/async/deferred/deferred_api_library.dart b/runtime/lib/json_patch.dart
similarity index 63%
copy from tests/lib/async/deferred/deferred_api_library.dart
copy to runtime/lib/json_patch.dart
index b59077065dc8212ef534fa68b211f0e705126ff7..0b637a15f40b9ed514e80097394caf78d5b88517 100644
--- a/tests/lib/async/deferred/deferred_api_library.dart
+++ b/runtime/lib/json_patch.dart
@@ -2,11 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Imported by deferred_api_test.dart.
+// JSON parsing and serialization.
-library deferred_api_library;
-
-foo(x) {
- print('foo($x)');
- return 42;
+patch parse(String json, [reviver(var key, var value)]) {
+ return _parse(json, reviver);
}
« no previous file with comments | « no previous file | runtime/lib/json_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698