Index: gin/converter.h |
diff --git a/gin/converter.h b/gin/converter.h |
index eb84be213d14e1a36ef5db44833a7dd1b6437ea9..c871da5908873339dbf6c3d1061984082e32f2ef 100644 |
--- a/gin/converter.h |
+++ b/gin/converter.h |
@@ -40,6 +40,24 @@ struct Converter<uint32_t> { |
}; |
template<> |
+struct Converter<int64_t> { |
+ // Warning: JavaScript cannot represent 64 integers precisely. |
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, |
+ int64_t val); |
+ static bool FromV8(v8::Handle<v8::Value> val, |
+ int64_t* out); |
+}; |
+ |
+template<> |
+struct Converter<uint64_t> { |
+ // Warning: JavaScript cannot represent 64 integers precisely. |
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, |
+ uint64_t val); |
+ static bool FromV8(v8::Handle<v8::Value> val, |
+ uint64_t* out); |
+}; |
+ |
+template<> |
struct Converter<double> { |
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, |
double val); |
@@ -63,7 +81,8 @@ struct Converter<v8::Handle<v8::Function> > { |
template<> |
struct Converter<v8::Handle<v8::Object> > { |
- static v8::Handle<v8::Value> ToV8(v8::Handle<v8::Object> val); |
+ static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, |
+ v8::Handle<v8::Object> val); |
static bool FromV8(v8::Handle<v8::Value> val, |
v8::Handle<v8::Object>* out); |
}; |