Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4a6345910f978176c56c6476f232dd0e58e496c8..64672bd9ce276820dcd77218bd5017891f35e2ce 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3296,7 +3296,8 @@ Local<String> v8::Object::ObjectProtoToString() { |
return v8::String::NewFromUtf8(isolate, "[object ]"); |
} else { |
i::Handle<i::String> class_name = i::Handle<i::String>::cast(name); |
- if (class_name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("Arguments"))) { |
+ if (i::String::Equals(class_name, |
+ i_isolate->factory()->Arguments_string())) { |
return v8::String::NewFromUtf8(isolate, "[object Object]"); |
} else { |
const char* prefix = "[object "; |