Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(813)

Unified Diff: src/objects.h

Issue 1589323002: [runtime] Unify the ToObject handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/builtins.cc ('K') | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index a3c52adc590a206f4323ecda1791cad3ad1e5146..29df33c414d7310b2ccc318505712649415d4876 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1135,8 +1135,8 @@ class Object {
// Convert to a JSObject if needed.
// native_context is used when creating wrapper object.
- static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate,
- Handle<Object> object);
+ MUST_USE_RESULT static inline MaybeHandle<JSReceiver> ToObject(
+ Isolate* isolate, Handle<Object> object);
MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject(
Isolate* isolate, Handle<Object> object, Handle<Context> context);
« src/builtins.cc ('K') | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698