Add a converter for nullptr_t
This commit is contained in:
parent
159a25d8e7
commit
747495e77c
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue