1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Merge pull request #142 from deoxxa/add-debugger-hook

add a way to trigger something with `debugger`
This commit is contained in:
Conrad Pankoff
2015-12-05 21:14:00 +11:00
4 changed files with 39 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ type _runtime struct {
scope *_scope
otto *Otto
eval *_object // The builtin eval, for determine indirect versus direct invocation
debugger func(*Otto)
labels []string // FIXME
lck sync.Mutex