Merge pull request #968 from gnarf/instanceof-fix

ensure this.workerClass exists before instanceof check
This commit is contained in:
Andrew Sliwinski 2018-03-12 12:45:09 -04:00 committed by GitHub
commit 2ae788ca28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ class CentralDispatch extends SharedDispatch {
const provider = this.services[service]; const provider = this.services[service];
return provider && { return provider && {
provider, provider,
isRemote: provider instanceof this.workerClass isRemote: Boolean(this.workerClass && provider instanceof this.workerClass)
}; };
} }