Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 8d84ff9

Browse files
committed
Remove accidentally added code
1 parent e533954 commit 8d84ff9

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

src/actions/pause/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function hasAwait(source, pauseLocation) {
164164

165165
return source.text
166166
.split("\n")
167-
[line - 1].slice(column - 200, column + 200)
167+
[line - 1].slice(column, column + 200)
168168
.match(/(yield|await)/);
169169
}
170170

src/actions/pause/paused.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ export function paused(pauseInfo: Pause) {
3434
return async function({ dispatch, getState, client, sourceMaps }: ThunkArgs) {
3535
const { frames, why, loadedObjects } = pauseInfo;
3636

37-
const location = isGeneratedId(visibleFrame.location.sourceId);
38-
if (
39-
isEqual(previousPauseLocation, pauseLocation) ||
40-
(isOriginalFile() && parser.atBadLocation(pauseLcation))
41-
) {
42-
dispatch(stepOver());
43-
return;
44-
}
45-
4637
dispatch({
4738
type: "PAUSED",
4839
why,
@@ -65,10 +56,10 @@ export function paused(pauseInfo: Pause) {
6556

6657
if (selectedFrame) {
6758
const visibleFrame = getVisibleSelectedFrame(getState());
68-
// const location = isGeneratedId(visibleFrame.location.sourceId)
69-
// ? selectedFrame.generatedLocation
70-
// : selectedFrame.location;
71-
await dispatch(selectLocation(selectedFrame.location));
59+
const location = isGeneratedId(visibleFrame.location.sourceId)
60+
? selectedFrame.generatedLocation
61+
: selectedFrame.location;
62+
await dispatch(selectLocation(location));
7263
}
7364

7465
dispatch(togglePaneCollapse("end", false));

src/reducers/pause.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import type { OriginalScope } from "../actions/pause/mapScopes";
1919
import type { Action } from "../actions/types";
2020
import type { Why, Scope, SourceId, FrameId } from "../types";
2121

22-
type Command = "StepIn" | "StepOver";
2322
export type PauseState = {
2423
why: ?Why,
2524
isWaitingOnBreak: boolean,
@@ -61,10 +60,7 @@ export const createPauseState = (): PauseState => ({
6160
shouldIgnoreCaughtExceptions: prefs.ignoreCaughtExceptions,
6261
canRewind: false,
6362
debuggeeUrl: "",
64-
command: "",
65-
pauseLocation: {
66-
pauseLocation: {}
67-
}
63+
command: ""
6864
});
6965

7066
const emptyPauseState = {

0 commit comments

Comments
 (0)