Hi,

I have some troubles implementing a js class/function which can fix
itself when not called with "new". What is my aim:

...
if (!args.IsConstructCall()) {
  return args.Callee()->NewInstance(args.Length(), ???);
}
...

However, I do not want this routine to be dependent on the actual
number of arguments passed. Can you please provide some help on this
topic?


Thanks,
Ondrej
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to