mirror of
https://github.com/electron/electron.git
synced 2026-02-14 00:55:19 -05:00
Strictly check for boolean type.
This commit is contained in:
@@ -25,6 +25,8 @@ Handle<Value> Converter<bool>::ToV8(Isolate* isolate, bool val) {
|
||||
}
|
||||
|
||||
bool Converter<bool>::FromV8(Isolate* isolate, Handle<Value> val, bool* out) {
|
||||
if (!val->IsBoolean())
|
||||
return false;
|
||||
*out = val->BooleanValue();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user