Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index c4d4f88e979d3b30f4fb7748a8056edc84f82587..56c646a3deefa826341bbf2a541db0d4d12000af 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -169,16 +169,6 @@ enum KeyedAccessStoreMode { |
}; |
-// Valid hints for the abstract operation ToPrimitive, |
-// implemented according to ES6, section 7.1.1. |
-enum class ToPrimitiveHint { kDefault, kNumber, kString }; |
- |
- |
-// Valid hints for the abstract operation OrdinaryToPrimitive, |
-// implemented according to ES6, section 7.1.1. |
-enum class OrdinaryToPrimitiveHint { kNumber, kString }; |
- |
- |
enum TypeofMode : int { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; |
@@ -1845,6 +1835,8 @@ class JSReceiver: public HeapObject { |
MUST_USE_RESULT static MaybeHandle<Object> ToPrimitive( |
Handle<JSReceiver> receiver, |
ToPrimitiveHint hint = ToPrimitiveHint::kDefault); |
+ |
+ // ES6 section 7.1.1.1 OrdinaryToPrimitive |
MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive( |
Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint); |