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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp

Issue 1779033003: DevTools: always use 16bit strings for inspector protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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: third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
index 3a83f53add7660b01ce7a5cdec2e068e6326b016..32053d4b774483ce06234e3116d4e5034b3af71b 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
@@ -35,7 +35,7 @@ int V8Regex::match(const String16& string, int startFrom, int* matchLength) cons
if (matchLength)
*matchLength = 0;
- if (m_regex.IsEmpty() || string.isNull())
+ if (m_regex.IsEmpty() || string.isEmpty())
return -1;
// v8 strings are limited to int.

Powered by Google App Engine
This is Rietveld 408576698