Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 658c0d78b68d8fe889ceff508bb59592cb8a6971..267210cf0553e38f0f538bd19e707139b20de339 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10198,15 +10198,16 @@ Handle<String> JSFunction::GetDebugName(Handle<JSFunction> function) { |
} |
-void Oddball::Initialize(Isolate* isolate, |
- Handle<Oddball> oddball, |
- const char* to_string, |
- Handle<Object> to_number, |
- byte kind) { |
+void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, |
+ const char* to_string, Handle<Object> to_number, |
+ const char* type_of, byte kind) { |
Handle<String> internalized_to_string = |
isolate->factory()->InternalizeUtf8String(to_string); |
- oddball->set_to_string(*internalized_to_string); |
+ Handle<String> internalized_type_of = |
+ isolate->factory()->InternalizeUtf8String(type_of); |
oddball->set_to_number(*to_number); |
+ oddball->set_to_string(*internalized_to_string); |
+ oddball->set_type_of(*internalized_type_of); |
oddball->set_kind(kind); |
} |