_registerInternalExtension (extensionObject) {
        const extensionInfo = extensionObject.getInfo();
        const fakeWorkerId = this.nextExtensionWorker++;
        const serviceName = `extension.${fakeWorkerId}.${extensionInfo.id}`;
        return dispatch.setService(serviceName, extensionObject)
            .then(() => dispatch.call('extensions', 'registerExtensionService', serviceName));
    }
/**
     * Register an internal (non-Worker) extension object
     * @param {object} extensionObject - the extension object to register
     * @returns {Promise} resolved once the extension is fully registered or rejected on failure
     */
Register an internal (non-Worker) extension object
@param {object} extensionObject - the extension object to register
@returns {Promise} resolved once the extension is fully registered or rejected on failure
Register an internal ( non - Worker ) extension object @param { object } extensionObject - the extension object to register @returns { Promise } resolved once the extension is fully registered or rejected on failure
_registerInternalExtension (extensionObject) {
        const extensionInfo = extensionObject.getInfo();
        const fakeWorkerId = this.nextExtensionWorker++;
        const serviceName = `extension.${fakeWorkerId}.${extensionInfo.id}`;
        return dispatch.setService(serviceName, extensionObject)
            .then(() => dispatch.call('extensions', 'registerExtensionService', serviceName));
    }
_registerInternalExtension ( extensionObject ) { const extensionInfo = extensionObject . getInfo ( ) ; const fakeWorkerId = this . nextExtensionWorker ++ ; const serviceName = ` ${ fakeWorkerId } ${ extensionInfo . id } ` ; return dispatch . setService ( serviceName , extensionObject ) . then ( ( ) => dispatch . call ( 'extensions' , 'registerExtensionService' , serviceName ) ) ; }
Register an internal (non-Worker) extension object
 @param {object} extensionObject - the extension object to register
 @returns {Promise} resolved once the extension is fully registered or rejected on failure
Register an internal ( non - Worker ) extension object @param { object } extensionObject - the extension object to register @returns { Promise } resolved once the extension is fully registered or rejected on failure