()
| 298 | } |
| 299 | |
| 300 | async #requestContent(): Promise<TextUtils.ContentData.ContentDataOrError> { |
| 301 | if (!this.scriptId) { |
| 302 | return {error: i18nString(UIStrings.scriptRemovedOrDeleted)}; |
| 303 | } |
| 304 | try { |
| 305 | return this.isWasm() ? await this.loadWasmContent() : await this.loadTextContent(); |
| 306 | } catch { |
| 307 | // TODO(bmeurer): Propagate errors as exceptions / rejections. |
| 308 | return {error: i18nString(UIStrings.unableToFetchScriptSource)}; |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | async getWasmBytecode(): Promise<ArrayBuffer> { |
| 313 | const base64 = await this.debuggerModel.target().debuggerAgent().invoke_getWasmBytecode({scriptId: this.scriptId}); |
no test coverage detected