Re: Missing case for OP_GETVARG in symbolic execution
Roberto Ierusalimschy <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
> > for c037162a in 'ldebug.c:569' the 'getobjname' function there is no
> > OP_GETVARG case. Is this intended or this part forgot to be updated after
> > the introduction of named vararg parameters?
> >
> > For example, the following code will properly tell me the nil
> > value I attempted to call is a field and it's name:
> > > local function a(x, ...)
> > > ({...}).g(); -- or 'local t = {...}; t.g()'
> > > end
> > > a();
> >
> > but not when I use the vararg parameter:
> > > local function a(x, ...t)
> > > t.g();
> > > end
> > > a();
> >
> > Putting the OP_GETVARG case together with OP_GETTABLE in 'getobjname' is
> > quick fix.
>
> Many thanks for the feedback.
Forgot this part: "(You are right.)"
-- Roberto
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20260413142723.GA298540%40arraial.inf.puc-rio.br.