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

Unified Diff: regexp2000/src/objects-debug.cc

Issue 8765: * Use new RegExp parser. (Closed)
Patch Set: Use new RegExp parser. Created 12 years, 2 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
« no previous file with comments | « regexp2000/src/objects.h ('k') | regexp2000/src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/objects-debug.cc
diff --git a/regexp2000/src/objects-debug.cc b/regexp2000/src/objects-debug.cc
index d67544e7be9d191ceedf2694aad46614abeb1b54..ecdc4d18007127d1ee521c59fc4836722f3f1d4e 100644
--- a/regexp2000/src/objects-debug.cc
+++ b/regexp2000/src/objects-debug.cc
@@ -669,7 +669,8 @@ void JSRegExp::JSRegExpVerify() {
}
case JSRegExp::JSCRE: {
FixedArray* arr = FixedArray::cast(data());
- ASSERT(arr->get(JSRegExp::kJscreDataIndex)->IsFixedArray());
+ Object* jscre_data = arr->get(JSRegExp::kJscreDataIndex);
+ ASSERT(jscre_data->IsFixedArray() || jscre_data->IsUndefined());
break;
}
default:
« no previous file with comments | « regexp2000/src/objects.h ('k') | regexp2000/src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698