_registerExtensionInfo (serviceName, extensionInfo) {
        extensionInfo = this._prepareExtensionInfo(serviceName, extensionInfo);
        dispatch.call('runtime', '_registerExtensionPrimitives', extensionInfo).catch(e => {
            log.error(`Failed to register primitives for extension on service ${serviceName}: ${JSON.stringify(e)}`);
        });
    }
/**
     * Sanitize extension info then register its primitives with the VM.
     * @param {string} serviceName - the name of the service hosting the extension
     * @param {ExtensionInfo} extensionInfo - the extension's metadata
     * @private
     */
Sanitize extension info then register its primitives with the VM.
@param {string} serviceName - the name of the service hosting the extension
@param {ExtensionInfo} extensionInfo - the extension's metadata
@private
Sanitize extension info then register its primitives with the VM . @param { string } serviceName - the name of the service hosting the extension @param { ExtensionInfo } extensionInfo - the extension ' s metadata @private
_registerExtensionInfo (serviceName, extensionInfo) {
        extensionInfo = this._prepareExtensionInfo(serviceName, extensionInfo);
        dispatch.call('runtime', '_registerExtensionPrimitives', extensionInfo).catch(e => {
            log.error(`Failed to register primitives for extension on service ${serviceName}: ${JSON.stringify(e)}`);
        });
    }
_registerExtensionInfo ( serviceName , extensionInfo ) { extensionInfo = this . _prepareExtensionInfo ( serviceName , extensionInfo ) ; dispatch . call ( 'runtime' , '_registerExtensionPrimitives' , extensionInfo ) . catch ( e => { log . error ( ` ${ serviceName } ${ JSON . stringify ( e ) } ` ) ; } ) ; }
Sanitize extension info then register its primitives with the VM.
Sanitize extension info then register its primitives with the VM .