Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5bbca4dba1bd35d504808c224e5f47dc50d6eba3..c5e6f8cee0dc5539de60eed07e3db4032125793e 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -4977,7 +4977,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ToBool) { |
NoHandleAllocation ha(isolate); |
ASSERT(args.length() == 1); |
- return args[0]->ToBoolean(); |
+ return isolate->heap()->ToBoolean(args[0]->BooleanValue()); |
} |