diff --git a/deps/chakrashim/src/v8regexp.cc b/deps/chakrashim/src/v8regexp.cc index 4940db2a891..d71a645d34d 100644 --- a/deps/chakrashim/src/v8regexp.cc +++ b/deps/chakrashim/src/v8regexp.cc @@ -48,7 +48,7 @@ MaybeLocal RegExp::New(Local context, Handle pattern, flagsStr[flagsCount++] = 'm'; } - CHAKRA_ASSERT(flagsCount <= c_maxFlagCount); + CHAKRA_ASSERT(flagsCount <= kMaxFlagCount); JsValueRef flagsValue; if (JsCreateString(flagsStr, flagsCount, &flagsValue) != JsNoError) {