You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -12,22 +13,20 @@ function stub.new(object, key, ...)
12
13
object= {}
13
14
key=""
14
15
end
15
-
localreturn_values_count=select("#", ...)
16
-
localreturn_values= {...}
16
+
localreturn_values=pack(...)
17
17
assert(type(object) =="table" andkey~=nil, "stub.new(): Can only create stub on a table key, call with 2 params; table, key", util.errorlevel())
18
18
assert(object[key] ==nilorutil.callable(object[key]), "stub.new(): The element for which to create a stub must either be callable, or be nil", util.errorlevel())
19
19
localold_elem=object[key] -- keep existing element (might be nil!)
0 commit comments