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

Unified Diff: gin/arguments.cc

Issue 2765853004: [Gin] Add Arguments::GetHolderCreationContext() (Closed)
Patch Set: Add test Created 3 years, 9 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
« no previous file with comments | « gin/arguments.h ('k') | gin/arguments_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/arguments.cc
diff --git a/gin/arguments.cc b/gin/arguments.cc
index 8bd9930e4b68ad9513c94d4e75f6ee056a09c516..600a811f8483bb0fa77be9156c7c4578a5099167 100644
--- a/gin/arguments.cc
+++ b/gin/arguments.cc
@@ -32,6 +32,10 @@ v8::Local<v8::Value> Arguments::PeekNext() const {
return (*info_)[next_];
}
+v8::Local<v8::Context> Arguments::GetHolderCreationContext() {
+ return info_->Holder()->CreationContext();
+}
+
std::string V8TypeAsString(v8::Local<v8::Value> value) {
if (value.IsEmpty())
return "<empty handle>";
« no previous file with comments | « gin/arguments.h ('k') | gin/arguments_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698