Index: src/factory.cc |
=================================================================== |
--- src/factory.cc (revision 9511) |
+++ src/factory.cc (working copy) |
@@ -1324,4 +1324,11 @@ |
} |
+Handle<Object> Factory::ToBoolean(bool value) { |
+ return Handle<Object>(value |
+ ? isolate()->heap()->true_value() |
+ : isolate()->heap()->false_value()); |
+} |
+ |
+ |
} } // namespace v8::internal |