fix includes

This commit is contained in:
Shelley Vohr 2017-11-16 08:15:56 -05:00
parent c8b544a47d
commit f5c04c7037
No known key found for this signature in database
GPG key ID: F13993A75599653C
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -1,7 +1,7 @@
const assert = require('assert') const assert = require('assert')
const {CallbacksRegistry} = require('electron') const {CallbacksRegistry} = require('electron')
describe.only('CallbacksRegistry module', () => { describe('CallbacksRegistry module', () => {
let registry = null let registry = null
beforeEach(() => { beforeEach(() => {