Add a converter for nullptr_t

This commit is contained in:
Vadim Macagon 2017-08-15 22:39:11 +07:00
parent 159a25d8e7
commit 747495e77c

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<>
struct Converter<bool> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,