refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547)
This commit is contained in:
parent
9937a2bbe8
commit
09190085c0
29 changed files with 66 additions and 64 deletions
|
@ -26,7 +26,7 @@ struct Converter<device::mojom::SerialPortInfoPtr> {
|
|||
static v8::Local<v8::Value> ToV8(
|
||||
v8::Isolate* isolate,
|
||||
const device::mojom::SerialPortInfoPtr& port) {
|
||||
gin_helper::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
auto dict = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
dict.Set("portId", port->token.ToString());
|
||||
dict.Set("portName", port->path.BaseName().LossyDisplayName());
|
||||
if (port->display_name && !port->display_name->empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue