Index: src/interpreter-irregexp.cc |
diff --git a/src/interpreter-irregexp.cc b/src/interpreter-irregexp.cc |
index 7f51d5e410a7822563aaa4c1e449183b6fb6b181..2aedfb48b1cc2aa912cba2f00754f3fb4d8e4b51 100644 |
--- a/src/interpreter-irregexp.cc |
+++ b/src/interpreter-irregexp.cc |
@@ -584,7 +584,7 @@ RegExpImpl::IrregexpResult IrregexpInterpreter::Match( |
const byte* code_base = code_array->GetDataStartAddress(); |
uc16 previous_char = '\n'; |
String::FlatContent subject_content = subject->GetFlatContent(); |
- if (subject_content.IsAscii()) { |
+ if (subject_content.IsOneByte()) { |
Vector<const uint8_t> subject_vector = subject_content.ToOneByteVector(); |
if (start_position != 0) previous_char = subject_vector[start_position - 1]; |
return RawMatch(isolate, |