Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 7458551dbfe492da03c00701066bfea30582b701..3a6311b9e2f2d2be078ca9f7632a42a3576c6662 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -2813,7 +2813,7 @@ Handle<Object> ToBooleanIC::ToBoolean(Handle<Object> object) { |
bool to_boolean_value = stub.UpdateStatus(object); |
Handle<Code> code = stub.GetCode(); |
set_target(*code); |
- return handle(Smi::FromInt(to_boolean_value ? 1 : 0), isolate()); |
+ return isolate()->factory()->ToBoolean(to_boolean_value); |
} |