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

Unified Diff: frog/lib/corelib_impl.dart

Issue 8538019: incremental progress on Value (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 9 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: frog/lib/corelib_impl.dart
diff --git a/frog/lib/corelib_impl.dart b/frog/lib/corelib_impl.dart
index e08e38c59950532fc4da9255666a21dee20e270f..0950eefb183cca663c0ac90e72fb6778632fc10b 100644
--- a/frog/lib/corelib_impl.dart
+++ b/frog/lib/corelib_impl.dart
@@ -254,7 +254,7 @@ class JSSyntaxRegExp implements RegExp {
String stringMatch(String str) {
var match = firstMatch(str);
- return match && match.group(0);
+ return match === null ? null : match.group(0);
}
Iterable<Match> allMatches(String str) => new _AllMatchesIterable(this, str);

Powered by Google App Engine
This is Rietveld 408576698