Index: gin/function_template.h.pump |
diff --git a/gin/function_template.h.pump b/gin/function_template.h.pump |
index 90ae516941b5207d47407fc7d117a173d57c50d7..4870faaccf72731e07b81df2a36e934cd20e6dec 100644 |
--- a/gin/function_template.h.pump |
+++ b/gin/function_template.h.pump |
@@ -141,6 +141,13 @@ inline bool GetNextArgument(Arguments* args, int create_flags, bool is_first, |
return true; |
} |
+// It's common for clients to just need the isolate, so we make that easy. |
+inline bool GetNextArgument(Arguments* args, int create_flags, |
+ bool is_first, v8::Isolate** result) { |
+ *result = args->isolate(); |
+ return true; |
+} |
+ |
// DispatchToCallback converts all the JavaScript arguments to C++ types and |
// invokes the base::Callback. |