chore: DCHECK for correct thread in EventEmitter::EmitWithSender (#19959)
This commit is contained in:
parent
bdc84d0bfb
commit
1dcda7b809
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ class EventEmitter : public Wrappable<T> {
|
||||||
base::Optional<electron::mojom::ElectronBrowser::MessageSyncCallback>
|
base::Optional<electron::mojom::ElectronBrowser::MessageSyncCallback>
|
||||||
callback,
|
callback,
|
||||||
Args&&... args) {
|
Args&&... args) {
|
||||||
|
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
||||||
v8::Locker locker(isolate());
|
v8::Locker locker(isolate());
|
||||||
v8::HandleScope handle_scope(isolate());
|
v8::HandleScope handle_scope(isolate());
|
||||||
v8::Local<v8::Object> wrapper = GetWrapper();
|
v8::Local<v8::Object> wrapper = GetWrapper();
|
||||||
|
|
Loading…
Reference in a new issue