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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart

Issue 11365196: Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two pending TODO's. Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index f22748b6aeb733117e472ecaa147dd292868866c..1277851631dd158e3077470901b90d74aedc8073 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -214,3 +214,12 @@ patch class Strings {
return array;
}
}
+
+patch class RegExp {
+ patch factory RegExp(String pattern,
+ {bool multiLine: false,
+ bool ignoreCase: false})
+ => new JSSyntaxRegExp(pattern,
+ multiLine: multiLine,
+ ignoreCase: ignoreCase);
+}

Powered by Google App Engine
This is Rietveld 408576698