Index: src/ast-value-factory.cc |
diff --git a/src/ast-value-factory.cc b/src/ast-value-factory.cc |
index 7b5158971f0829984f5a71c3ad9cfdcc1016d1cc..ea8474ff52f6c81db9124be8a7af3edefed969c9 100644 |
--- a/src/ast-value-factory.cc |
+++ b/src/ast-value-factory.cc |
@@ -249,7 +249,7 @@ const AstRawString* AstValueFactory::GetTwoByteString( |
const AstRawString* AstValueFactory::GetString(Handle<String> literal) { |
DisallowHeapAllocation no_gc; |
String::FlatContent content = literal->GetFlatContent(); |
- if (content.IsAscii()) { |
+ if (content.IsOneByte()) { |
return GetOneByteString(content.ToOneByteVector()); |
} |
DCHECK(content.IsTwoByte()); |