mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add a converter for nullptr_t
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user