Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Oct 7, 2016
1 parent 83242b5 commit a13ffda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,12 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
// Convert to a Variable object then just copy the relevant fields off
return this.remoteObjectToVariable('', evalResponse.result).then(variable => {
if (evalResponse.exceptionDetails) {
return utils.errP(variable.value);
let resultValue = variable.value;
if (resultValue && resultValue.startsWith('ReferenceError: ') && args.context !== 'repl') {
resultValue = utils.localize('eval.not.available', "not available");
}

return utils.errP(resultValue);
}

return <IEvaluateResponseBody>{
Expand Down

0 comments on commit a13ffda

Please sign in to comment.