Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d6c60f1845e7b32f6ac9456fd4f6567fdce72233..7c5c92080a0711910e6a2fd5751bc85d7b008977 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13396,14 +13396,14 @@ Handle<String> JSFunction::ToString(Handle<JSFunction> function) { |
return builder.Finish().ToHandleChecked(); |
} |
- |
void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, |
const char* to_string, Handle<Object> to_number, |
- const char* type_of, byte kind) { |
+ bool to_boolean, const char* type_of, byte kind) { |
Handle<String> internalized_to_string = |
isolate->factory()->InternalizeUtf8String(to_string); |
Handle<String> internalized_type_of = |
isolate->factory()->InternalizeUtf8String(type_of); |
+ oddball->set_to_boolean(isolate->heap()->ToBoolean(to_boolean)); |
oddball->set_to_number(*to_number); |
oddball->set_to_string(*internalized_to_string); |
oddball->set_type_of(*internalized_type_of); |