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

Consolidate run/runSafe into _runtime

This commit is contained in:
Robert Krimen
2013-05-18 16:18:17 -07:00
parent d2eaa4aab6
commit 699232d49a
3 changed files with 33 additions and 48 deletions

View File

@@ -50,7 +50,7 @@ func runTestWithOtto() (*Otto, func(string, ...interface{}) Value) {
source = source[6:]
source = strings.TrimLeft(source, " ")
}
value = Otto.run(source)
value = Otto.runtime.run(source)
}
value = Otto.runtime.GetValue(value)
if len(expect) > 0 {