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

Unified Diff: gin/arguments.h

Issue 2824883002: [gin] Add Arguments::GetAll() (Closed)
Patch Set: Created 3 years, 8 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
Index: gin/arguments.h
diff --git a/gin/arguments.h b/gin/arguments.h
index 99a5d16db21c388dc5dc859301e8deb85cc1c1fd..c0a7bc2171d4fd51d2d794b47038484716a493a4 100644
--- a/gin/arguments.h
+++ b/gin/arguments.h
@@ -81,6 +81,11 @@ class GIN_EXPORT Arguments {
// dereferencing the handle.
v8::Local<v8::Value> PeekNext() const;
+ // Returns all arguments. Since this doesn't require any conversion, it
+ // cannot fail. This does not rely on or modify the current position in the
+ // array used by Get/PeekNext().
+ std::vector<v8::Local<v8::Value>> GetAll() const;
+
void ThrowError() const;
void ThrowTypeError(const std::string& message) const;

Powered by Google App Engine
This is Rietveld 408576698