File tree Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Expand file tree Collapse file tree 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'
22
33import type { IOptions , Result } from '..'
44import { areBreakpointsSet } from '../stdlib/inspector'
@@ -43,33 +43,12 @@ export function determineExecutionMethod(
4343 }
4444
4545 let isNativeRunnable
46- if ( verboseErrors ) {
46+ if ( verboseErrors || areBreakpointsSet ( ) ) {
4747 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- }
6948 } else {
7049 let hasDebuggerStatement = false
7150 simple ( program , {
72- DebuggerStatement ( _node : DebuggerStatement ) {
51+ DebuggerStatement ( ) {
7352 hasDebuggerStatement = true
7453 }
7554 } )
You can’t perform that action at this time.
0 commit comments