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

Unified Diff: runtime/bin/json_patch.dart

Issue 12114021: Use browsers JSON.parse for parsing JSON. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: runtime/bin/json_patch.dart
diff --git a/samples/hi/hi.dart b/runtime/bin/json_patch.dart
similarity index 71%
copy from samples/hi/hi.dart
copy to runtime/bin/json_patch.dart
index 2ce0f41f920cf65027111390b2f071231db16638..c03845bbff3ff9d0253bef9d83af99c60e4891b1 100644
--- a/samples/hi/hi.dart
+++ b/runtime/bin/json_patch.dart
@@ -2,10 +2,6 @@
// 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.
-library hi;
-import 'dart:html';
-
-main() {
- query('#status').text = 'Hi, Dart';
-}
+patch parse(String json, [reviver(var key, var value)]) =>
+ _parse(json, reviver);

Powered by Google App Engine
This is Rietveld 408576698