[webkit-dev] Fwd: [webkit-changes] the variable of JavaScript function

Adam Roben aroben at apple.com
Wed Mar 18 08:35:41 PDT 2009


webkit-changes is only used for commit notifications from Subversion.  
Forwarding this to the appropriate mailing list.

Begin forwarded message:

> From: zhenghe zhang <zhenghe.zhang at gmail.com>
> Date: March 18, 2009 6:39:46 AM EDT
> To: webkit-changes at lists.webkit.org
> Subject: [webkit-changes] the variable of JavaScript function
>
> Hi
> There is a javaScript function, as follow:
> Function test()
> {
> 	Var a = 3;
> 	Var b = 2;
> 	Print(a+b);
> }
> There are two variables, and the identifiers will stored in the
> identifierTable. When running the function, it will print "5".
> When running the code "print(a+b)",it will use "3" to replace "a"  
> and "2"
> replace "b". I don't know how to do it through the c++ functions. I  
> hope you
> tell!
> Thank you & best regards
> zhang
>
> _______________________________________________
> webkit-changes mailing list
> webkit-changes at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090318/167094f4/attachment.html>


More information about the webkit-dev mailing list