Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Update some vars
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Jun 25, 2019
1 parent 9f16fff commit 0087ffb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/truffle-core/lib/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,16 @@ class Console extends EventEmitter {
*/
let includesAwait = /^\s*((?:(?:var|const|let)\s+)?[a-zA-Z_$][0-9a-zA-Z_$]*\s*=\s*)?(\(?\s*await[\s\S]*)/;

var match = cmd.match(includesAwait);
var source = cmd;
var assignment = null;
const match = cmd.match(includesAwait);
let source = cmd;
let assignment = null;

// If our code includes an await, add special processing to ensure it's evaluated properly.
if (match) {
var assign = match[1];
var expression = match[2];
let assign = match[1];
const expression = match[2];

var RESULT = "__await_outside_result";
const RESULT = "__await_outside_result";

// Wrap the await inside an async function.
// Strange indentation keeps column offset correct in stack traces
Expand Down

0 comments on commit 0087ffb

Please sign in to comment.