[gjs: 4/5] debugger: Fix eslint errors
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 4/5] debugger: Fix eslint errors
- Date: Tue, 16 Apr 2019 03:05:46 +0000 (UTC)
commit 64d8ee5ab2d59a847366414aba3cab76b8fb31eb
Author: namnumr <nmanumr gmail com>
Date: Mon Apr 15 19:05:12 2019 -0700
debugger: Fix eslint errors
modules/_bootstrap/debugger.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/modules/_bootstrap/debugger.js b/modules/_bootstrap/debugger.js
index 38a3deeb..b28d23b6 100644
--- a/modules/_bootstrap/debugger.js
+++ b/modules/_bootstrap/debugger.js
@@ -105,7 +105,7 @@ Debugger.Frame.prototype.describeFrame = function() {
else if (this.type == 'global')
return 'toplevel';
else
- return this.type + ' code';
+ return `${this.type} code`;
};
Debugger.Frame.prototype.describePosition = function() {
@@ -470,7 +470,7 @@ function doStepOrNext(kind) {
}
function stepEntered(newFrame) {
- print('entered frame: ' + newFrame.describeFull());
+ print(`entered frame: ${newFrame.describeFull()}`);
if (!kind.until || newFrame.line == kind.stopLine) {
topFrame = focusedFrame = newFrame;
return repl();
@@ -598,7 +598,7 @@ function breakpointCommand(where) {
const possibleOffsets = findBreakpointOffsets(line, focusedFrame.script);
if (possibleOffsets.length === 0) {
- print('Unable to break at line ' + where);
+ print(`Unable to break at line ${where}`);
return;
}
@@ -770,7 +770,7 @@ function runcmd(cmd) {
var first = pieces[0], rest = pieces[1];
if (!commands.hasOwnProperty(first)) {
- print("unrecognized command '" + first + "'");
+ print(`unrecognized command '${first}'`);
return undefined;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]