Update stack string parsing in the CallbacksRegistry

Fixes the "ipc module > remote listeners
> detaches listeners subscribed to destroyed renderers, and shows a warning"
test.
This commit is contained in:
Aleksei Kuzmin 2017-10-31 06:23:12 +03:00 committed by Cheng Zhao
parent 82394cc06d
commit 465f9009ff

View file

@ -25,7 +25,8 @@ class CallbacksRegistry {
while ((match = regexp.exec(stackString)) !== null) {
const location = match[1]
if (location.includes('native')) continue
if (location.includes('(native)')) continue
if (location.includes('(<anonymous>)')) continue
if (location.includes('electron.asar')) continue
const ref = /([^/^)]*)\)?$/gi.exec(location)