Skip to content

Commit

Permalink
Do not set blackbox patterns when not set
Browse files Browse the repository at this point in the history
* indium-v8.el (indium-v8--enable-debugger): Do not try to set blackbox patterns
  if `indium-debugger-blackbox-regexps' is not set.
  • Loading branch information
NicolasPetton committed Jul 25, 2018
1 parent 6a8ea8b commit 4df8a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indium-v8.el
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ inspectors."
'((method . "Debugger.enable"))
(lambda (&rest _)
(indium-v8-set-pause-on-exceptions "uncaught")
(indium-v8--set-blackbox-patterns indium-debugger-blackbox-regexps))))
(when indium-debugger-blackbox-regexps
(indium-v8--set-blackbox-patterns indium-debugger-blackbox-regexps)))))

(defun indium-v8--set-blackbox-patterns (regexps)
"Replace previous blackbox patterns with passed REGEXPS."
Expand Down

0 comments on commit 4df8a1a

Please sign in to comment.