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

Unified Diff: gin/arguments.cc

Issue 62333018: Implement Asynchronous Module Definition API for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar testing Created 7 years, 1 month 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
Index: gin/arguments.cc
diff --git a/gin/arguments.cc b/gin/arguments.cc
index 15802b8eaa0fa202b42aa573983b0a5bc1bc1444..0a2375cf27aea7180209de8df0f46262c30adc2e 100644
--- a/gin/arguments.cc
+++ b/gin/arguments.cc
@@ -19,6 +19,12 @@ Arguments::Arguments(const v8::FunctionCallbackInfo<v8::Value>& info)
Arguments::~Arguments() {
}
+v8::Handle<v8::Value> Arguments::PeekNext() {
+ if (next_ >= info_.Length())
+ return v8::Handle<v8::Value>();
+ return info_[next_];
+}
+
void Arguments::ThrowError() {
if (insufficient_arguments_)
return ThrowTypeError("Insufficient number of arguments.");
« no previous file with comments | « gin/arguments.h ('k') | gin/context_holder.h » ('j') | gin/modules/module_registry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698