Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Debugger.getScriptSource on Android
  • Loading branch information
bundyo authored Jul 7, 2016
commit f71d31cf9019ac567b8da6b616c6e17eb60b1bdf
3 changes: 3 additions & 0 deletions src/debug-adapter/connection/androidConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ export class AndroidConnection implements INSDebugConnection {
let messageId = this._nextId++;
return this.request("scripts", requestParams).then(response => {
return new Promise((resolve, reject) => {
// We request an array of IDs, we should expect an array of scripts.
response = response[0];

if (response.error) {
reject(response.error);
return;
Expand Down