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

Add FunctionCall.Otto

This commit is contained in:
Robert Krimen
2013-05-19 14:57:01 -07:00
parent 0b8a079525
commit 791a2c0c8e
4 changed files with 14 additions and 7 deletions

View File

@@ -120,6 +120,7 @@ func New() *Otto {
self := &Otto{
runtime: newContext(),
}
self.runtime.Otto = self
self.Set("console", self.runtime.newConsole())
registry.Apply(func(entry registry.Entry) {