File tree 1 file changed +3
-24
lines changed
1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change 1
- import type { DebuggerStatement , Program } from 'estree'
1
+ import type { Program } from 'estree'
2
2
3
3
import type { IOptions , Result } from '..'
4
4
import { areBreakpointsSet } from '../stdlib/inspector'
@@ -43,33 +43,12 @@ export function determineExecutionMethod(
43
43
}
44
44
45
45
let isNativeRunnable
46
- if ( verboseErrors ) {
46
+ if ( verboseErrors || areBreakpointsSet ( ) ) {
47
47
isNativeRunnable = false
48
- } else if ( areBreakpointsSet ( ) ) {
49
- isNativeRunnable = false
50
- } else if ( theOptions . executionMethod === 'auto' ) {
51
- if ( context . executionMethod === 'auto' ) {
52
- if ( verboseErrors ) {
53
- isNativeRunnable = false
54
- } else if ( areBreakpointsSet ( ) ) {
55
- isNativeRunnable = false
56
- } else {
57
- let hasDebuggerStatement = false
58
- simple ( program , {
59
- DebuggerStatement ( ) {
60
- hasDebuggerStatement = true
61
- }
62
- } )
63
- isNativeRunnable = ! hasDebuggerStatement
64
- }
65
- context . executionMethod = isNativeRunnable ? 'native' : 'cse-machine'
66
- } else {
67
- isNativeRunnable = context . executionMethod === 'native'
68
- }
69
48
} else {
70
49
let hasDebuggerStatement = false
71
50
simple ( program , {
72
- DebuggerStatement ( _node : DebuggerStatement ) {
51
+ DebuggerStatement ( ) {
73
52
hasDebuggerStatement = true
74
53
}
75
54
} )
You can’t perform that action at this time.
0 commit comments