Index: runtime/lib/integers_patch.dart |
diff --git a/lib/core/bool.dart b/runtime/lib/integers_patch.dart |
similarity index 62% |
copy from lib/core/bool.dart |
copy to runtime/lib/integers_patch.dart |
index 3225a9989978ca9d4a380f1b35574bef900fdcb6..373eeb43b658033989b318f50e2defa411e7ca09 100644 |
--- a/lib/core/bool.dart |
+++ b/runtime/lib/integers_patch.dart |
@@ -1,12 +1,10 @@ |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// 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. |
- |
// Dart core library. |
-class bool { |
- factory bool._uninstantiable() { |
- throw const UnsupportedOperationException( |
- "class bool cannot be instantiated"); |
- } |
+// VM implementation of int. |
+ |
+patch class int { |
+ /* patch */ static int parse(String string) => MathNatives.parseInt(string); |
hausner
2012/09/14 15:40:59
If patch functions can be natives, I would call th
|
} |