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

Unified Diff: runtime/bin/common_patch.dart

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 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
Index: runtime/bin/common_patch.dart
diff --git a/samples/hi/hi.dart b/runtime/bin/common_patch.dart
similarity index 65%
copy from samples/hi/hi.dart
copy to runtime/bin/common_patch.dart
index 2ce0f41f920cf65027111390b2f071231db16638..1c878aa13a4168a5094d4875c059052319eb8e80 100644
--- a/samples/hi/hi.dart
+++ b/runtime/bin/common_patch.dart
@@ -2,10 +2,9 @@
// 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;
+patch class _BufferUtils {
+ /* patch */ static bool _isBuiltinList(List buffer)
+ native "Common_IsBuiltinList";
+}
-import 'dart:html';
-main() {
- query('#status').text = 'Hi, Dart';
-}

Powered by Google App Engine
This is Rietveld 408576698