Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 59cddc282a37b35a2054244e5b0b8e6ca65bdab3..a1b07f05030b327b005b13e8c705eb9c6c4ef09f 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1055,7 +1055,7 @@ class Object : public MaybeObject { |
inline bool HasSpecificClassOf(String* name); |
MUST_USE_RESULT MaybeObject* ToObject(); // ECMA-262 9.9. |
- Object* ToBoolean(); // ECMA-262 9.2. |
+ bool BooleanValue(); // ECMA-262 9.2. |
// Convert to a JSObject if needed. |
// native_context is used when creating wrapper object. |
@@ -1465,7 +1465,8 @@ class HeapNumber: public HeapObject { |
static inline HeapNumber* cast(Object* obj); |
// Dispatched behavior. |
- Object* HeapNumberToBoolean(); |
+ bool HeapNumberBooleanValue(); |
+ |
inline void HeapNumberPrint() { |
HeapNumberPrint(stdout); |
} |