Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index e35d7f4fe8701572adfc49eef39e8f5634af553b..ff8896b823d0d60e9e4b7e411d866471180dd98b 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1525,7 +1525,11 @@ class Object : public MaybeObject { |
// Convert to a JSObject if needed. |
// native_context is used when creating wrapper object. |
- MUST_USE_RESULT MaybeObject* ToObject(Context* native_context); |
+ static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
+ Handle<Object> object); |
+ static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
+ Handle<Object> object, |
+ Handle<Context> context); |
// Converts this to a Smi if possible. |
// Failure is returned otherwise. |