Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created October 27, 2020 00:39
Show Gist options
  • Select an option

  • Save jasonLaster/7a9f84a642ac158d3cd303d776fbbea7 to your computer and use it in GitHub Desktop.

Select an option

Save jasonLaster/7a9f84a642ac158d3cd303d776fbbea7 to your computer and use it in GitHub Desktop.
diff --git a/src/devtools/client/debugger/src/actions/pause/continueToHere.js b/src/devtools/client/debugger/src/actions/pause/continueToHere.js
index 18b4a7b3..dcc3642f 100644
--- a/src/devtools/client/debugger/src/actions/pause/continueToHere.js
+++ b/src/devtools/client/debugger/src/actions/pause/continueToHere.js
@@ -4,19 +4,9 @@
//
-import {
- getSelectedSource,
- getSelectedFrame,
- getClosestBreakpointPosition,
- getBreakpoint,
- getFramePositions,
-} from "../../selectors";
-import { addHiddenBreakpoint } from "../breakpoints";
-import { setBreakpointPositions } from "../breakpoints/breakpointPositions";
+import { getFramePositions } from "../../selectors";
import actions from "../../actions";
-import { resume, rewind } from "./commands";
-
export function continueToHere(cx, location) {
return async function ({ dispatch, getState }) {
const framePositions = getFramePositions(getState());
diff --git a/src/devtools/client/debugger/src/components/Editor/index.js b/src/devtools/client/debugger/src/components/Editor/index.js
index 00110152..6b9b2ced 100644
--- a/src/devtools/client/debugger/src/components/Editor/index.js
+++ b/src/devtools/client/debugger/src/components/Editor/index.js
@@ -119,7 +119,7 @@ class Editor extends PureComponent {
// disables the default search shortcuts
// $FlowIgnore
- editor._initShortcuts = () => {};
+ editor._initShortcuts = () => { };
const node = ReactDOM.findDOMNode(this);
if (node instanceof HTMLElement) {
@@ -342,7 +342,7 @@ class Editor extends PureComponent {
this.setState({ contextMenu: null });
};
- onGutterClick = (cm, line, gutter, ev) => {
+ onGutterClick = (_, line, _, ev) => {
const {
cx,
selectedSource,
@@ -373,7 +373,7 @@ class Editor extends PureComponent {
}
if (ev.metaKey) {
- return continueToHere(cx, sourceLine);
+ return continueToHere(cx, { line: sourceLine });
}
return addBreakpointAtLine(cx, sourceLine, ev.altKey, ev.shiftKey);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment