Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a0ca513dd9e249046150fd2888c38a914e9c887d..7907901011af7cdd6cd4ba5003a3a147ca2dd151 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1074,9 +1074,12 @@ class Object { |
// native_context is used when creating wrapper object. |
static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
Handle<Object> object); |
- static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
- Handle<Object> object, |
- Handle<Context> context); |
+ MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( |
+ Isolate* isolate, Handle<Object> object, Handle<Context> context); |
+ |
+ // Convert to a Name if needed. |
+ MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
+ Handle<Object> object); |
MUST_USE_RESULT static MaybeHandle<Object> GetProperty( |
LookupIterator* it, LanguageMode language_mode = SLOPPY); |