diff options
Diffstat (limited to 'lib/_debugger.js')
-rw-r--r-- | lib/_debugger.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js index b1091424c6..e7e24d32a1 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -1350,7 +1350,7 @@ Interface.prototype.setBreakpoint = function(script, line, } let req; - if (/\(\)$/.test(script)) { + if (script.endsWith('()')) { // setBreakpoint('functionname()'); req = { type: 'function', |