Index: lib/compiler/implementation/lib/core_patch.dart |
diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart |
index 9d374415812fa5186686f1a06696c320f382030c..bc881b3391220ec29540977276584feb97808576 100644 |
--- a/lib/compiler/implementation/lib/core_patch.dart |
+++ b/lib/compiler/implementation/lib/core_patch.dart |
@@ -57,3 +57,11 @@ patch class Expando<T> { |
static const String _EXPANDO_PROPERTY_NAME = 'expando\$values'; |
static int _keyCount = 0; |
} |
+ |
+patch class int { |
+ patch static int parse(String string) => Primitives.parseInt(string); |
+} |
+ |
+patch class double { |
+ patch static double parse(String string) => Primitives.parseDouble(string); |
+} |