Merge pull request #14 from enlight/nullptr-converter

Add a converter for `nullptr_t`
This commit is contained in:
Cheng Zhao 2017-08-17 16:01:27 +09:00 committed by GitHub
commit f047bb61bb

View file

@ -40,6 +40,13 @@ struct Converter<void*> {
} }
}; };
template<>
struct Converter<std::nullptr_t> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, std::nullptr_t val) {
return v8::Null(isolate);
}
};
template<> template<>
struct Converter<bool> { struct Converter<bool> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,