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
orig_len = string.len
function my_len(s)
ts.error('len is '..s)
return orig_len(s)
end
string.len = my_len
abc = 'abc'
ts.error('test len '..abc:len())
We can then put restrictions on input parameters on these functions