Index: src/conversions.cc |
diff --git a/src/conversions.cc b/src/conversions.cc |
index 69272b5aff4624de368a529a15bba6b7f2be2ddc..8b776235e7b255a8638b954856bfcab159665a2f 100644 |
--- a/src/conversions.cc |
+++ b/src/conversions.cc |
@@ -490,7 +490,7 @@ double StringToDouble(UnicodeCache* unicode_cache, |
DisallowHeapAllocation no_gc; |
String::FlatContent flat = string->GetFlatContent(); |
// ECMA-262 section 15.1.2.3, empty string is NaN |
- if (flat.IsAscii()) { |
+ if (flat.IsOneByte()) { |
return StringToDouble( |
unicode_cache, flat.ToOneByteVector(), flags, empty_string_val); |
} else { |