[webkit-dev] question about jsc

yuqing cai yuqingcaiw at gmail.com
Mon Oct 29 08:24:58 PDT 2012


Michael, Thanks for your reply, now I understand it. :~)

于 2012年10月29日 23:16, Michael Saboff 写道:
> The output of "undefined" is normal.  It is the result of the expression you entered.  jsc is basically returning the result of the expressions you enter.  Both var and print themselves evaluate to "undefined".  If you try "x = 1;" you'll get 1 as that expression returns 1.
>
> Concerning testing,  If you have successfully built testapi, from the webkit top directory you can run Tools/Scripts/run-javascriptcore-tests.  This script will first run testapi, which tests the JavaScript APIs and then run a collection of javascript tests.  If you have successfully built testRegExp, you can run run-regexp-tests which will test the regular expression engine.  Both testapi and testRegExp should be built along with jsc when you run the script Tools/Scripts/build-jsc.
>
> - Michael
>
> On Oct 29, 2012, at 2:39 AM, yuqing cai <yuqingcaiw at gmail.com> wrote:
>
>> hi, all, I try to port the webkit to a new platform(the platform is
>> linux based run with glibc & glib, but not gtk), now I have build the
>> jsc project successfully, but when I run the jsc program, something
>> happend show as below:
>>
>> qing at HAHA:/data/project/webOS/WebKit/Source/JavaScriptCore/JavaScriptCore.catwalk$
>> ./jsc
>>> var string="hello world :)";
>> undefined
>>> print(string);
>> hello world :)
>> undefined
>> now I have 2 questions:
>> 1. Why the word "undefined" comes up?
>> 2. How to test the jsc program?
>>
>> qing
>> 2012-10-29
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo/webkit-dev



More information about the webkit-dev mailing list