Convert arguments to V8 directly in EventEmitter::Emmit
This gets rid of the extra conversion between ListValue.
This commit is contained in:
parent
65d2540807
commit
2d6dc9c527
10 changed files with 68 additions and 134 deletions
|
@ -37,4 +37,10 @@ bool Converter<base::ListValue>::FromV8(v8::Isolate* isolate,
|
|||
}
|
||||
}
|
||||
|
||||
v8::Handle<v8::Value> Converter<base::ListValue>::ToV8(
|
||||
v8::Isolate* isolate,
|
||||
const base::ListValue& val) {
|
||||
return v8::Undefined(isolate);
|
||||
}
|
||||
|
||||
} // namespace mate
|
||||
|
|
|
@ -26,6 +26,8 @@ struct Converter<base::ListValue> {
|
|||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
base::ListValue* out);
|
||||
static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
const base::ListValue& val);
|
||||
};
|
||||
|
||||
} // namespace mate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue