Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index 1a47e096fb7b097a9eae7f7d0351feebbd15198d..9710fa858614f9ca6a7525f4fadd323339e5d7c6 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -4560,7 +4560,7 @@ bool v8::String::CanMakeExternal() { |
| return false; |
| } |
| int size = obj->Size(); // Byte size of the original string. |
| - if (size < i::ExternalString::kSize) |
| + if (size < i::ExternalString::kShortSize) |
|
Lasse Reichstein
2011/11/23 08:43:20
Put braces around the then-statement.
Yang
2011/11/23 09:58:48
Done.
|
| return false; |
| i::StringShape shape(*obj); |
| return !shape.IsExternal(); |