* @param {*} extension the value passed to uninstallWebExtension. * @return {string} the wrapped id. * @throws {error.InvalidArgumentError} if `extension` is not a WebExtension.
(extension)
| 99 | * @throws {error.InvalidArgumentError} if `extension` is not a {@link WebExtension}. |
| 100 | */ |
| 101 | function extensionId(extension) { |
| 102 | if (!(extension instanceof WebExtension)) { |
| 103 | throw new error.InvalidArgumentError( |
| 104 | 'uninstallWebExtension expects the WebExtension returned by installWebExtension', |
| 105 | ) |
| 106 | } |
| 107 | return extension.id |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * The extension as base64 bytes: a directory is zipped, a file read, and anything else is |
nothing calls this directly
no outgoing calls
no test coverage detected