diff options
author | Felix Lange <fjl@twurst.com> | 2016-02-20 21:28:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-13 18:06:42 +0800 |
commit | 5542b51b5047ebd4792cd6b2cec789189c019e3c (patch) | |
tree | c5cba3abb83a9426c8a7789199d73d19aa20a0bc /jsre/completion.go | |
parent | b34b130fb5f8de8bc875c4ddadff044a41c074b4 (diff) | |
download | go-tangerine-5542b51b5047ebd4792cd6b2cec789189c019e3c.tar.gz go-tangerine-5542b51b5047ebd4792cd6b2cec789189c019e3c.tar.zst go-tangerine-5542b51b5047ebd4792cd6b2cec789189c019e3c.zip |
jsre: expose Do
Diffstat (limited to 'jsre/completion.go')
-rw-r--r-- | jsre/completion.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jsre/completion.go b/jsre/completion.go index e84a5b75c..11e209b69 100644 --- a/jsre/completion.go +++ b/jsre/completion.go @@ -27,7 +27,9 @@ import ( // evaluated, callers need to make sure that evaluating line does not have side effects. func (jsre *JSRE) CompleteKeywords(line string) []string { var results []string - jsre.do(func(vm *otto.Otto) { results = getCompletions(vm, line) }) + jsre.Do(func(vm *otto.Otto) { + results = getCompletions(vm, line) + }) return results } |