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

Unified Diff: runtime/lib/regexp_patch.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/regexp_patch.dart
diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart
index 115dd45a802e922de1651dd4976fae123d4f850a..d6dc262ad4ca7e401105ca8d620f963bfbd6d3e8 100644
--- a/runtime/lib/regexp_patch.dart
+++ b/runtime/lib/regexp_patch.dart
@@ -61,7 +61,7 @@ patch class JSSyntaxRegExp {
/* patch */ Match firstMatch(String str) {
List match = _ExecuteMatch(str, 0);
- if (match === null) {
+ if (match == null) {
return null;
}
return new _JSRegExpMatch(this, str, match);
@@ -91,12 +91,12 @@ patch class JSSyntaxRegExp {
/* patch */ bool hasMatch(String str) {
List match = _ExecuteMatch(str, 0);
- return (match === null) ? false : true;
+ return (match == null) ? false : true;
}
/* patch */ String stringMatch(String str) {
List match = _ExecuteMatch(str, 0);
- if (match === null) {
+ if (match == null) {
return null;
}
// TODO(ajohnsen): Use _substringUnchecked when regexp is in core.
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698