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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user