howto get variable's name in native code

View: New views
2 Messages — Rating Filter:   Alert me  

howto get variable's name in native code

by Tom Stanley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello,all
We have implement a custom javascript object in c++,with properties and
methods, and can use in script succesfully, for example:
var a= new custObj;

Our question is:
Can we get the variable's name , which is "a" in the code above,in our
native getter function?

Thanks


_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine

Re: howto get variable's name in native code

by Wes Garland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

stdan:

You cannot.

Wes

On Thu, Oct 15, 2009 at 5:37 PM, stdan <stdanley@...> wrote:

> hello,all
> We have implement a custom javascript object in c++,with properties and
> methods, and can use in script succesfully, for example:
> var a= new custObj;
>
> Our question is:
> Can we get the variable's name , which is "a" in the code above,in our
> native getter function?
>
> Thanks
>
>
> _______________________________________________
> dev-tech-js-engine mailing list
> dev-tech-js-engine@...
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>



--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine