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

Unified Diff: gin/arguments.h

Issue 120043008: Add a simple one shot and repeating timer API for Mojo.js. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « no previous file | gin/function_template.h » ('j') | gin/runner.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/arguments.h
diff --git a/gin/arguments.h b/gin/arguments.h
index ec4ae80e88219d5fcb15ecb770bfdf429c672849..f7b3389d8deed9dccb28788e34f81679de49ce72 100644
--- a/gin/arguments.h
+++ b/gin/arguments.h
@@ -6,6 +6,7 @@
#define GIN_ARGUMENTS_H_
#include "base/basictypes.h"
+#include "base/logging.h"
#include "gin/converter.h"
#include "gin/gin_export.h"
@@ -58,7 +59,9 @@ class GIN_EXPORT Arguments {
template<typename T>
void Return(T val) {
- info_->GetReturnValue().Set(ConvertToV8(isolate_, val));
+ v8::Handle<v8::Value> r(ConvertToV8(isolate_, val));
+ LOG(ERROR) << "v8 return value: " << r->Int32Value();
+ info_->GetReturnValue().Set(r);
}
v8::Handle<v8::Value> PeekNext() const;
« no previous file with comments | « no previous file | gin/function_template.h » ('j') | gin/runner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698