Installing JSHydra 编辑

Prerequisites

  • Mercurial 1.0 is needed to access source repositories.
  • Prerequisites for building SpiderMonkey SpiderMonkey is part of the build process, but since JSHydra will get the code if required, you do not need to worry about obtaining the right version of SpiderMonkey.

Building JSHydra

JSHydra requires, as part of its build process, SpiderMonkey. By default, the configure script will obtain a known working copy of SpiderMonkey; it is possible via the --moz-src and --moz-obj configure arguments to tell JSHydra to use existing copies of the source and build.

cd $HOME/jshydra
hg clone http://hg.mozilla.org/users/Pidgeot18_gmail.com/jshydra/
cd jshydra
./configure
make

# run jshydra tests
make check

Processing input files

JSHydra requires the files it processes to be correct JS files. Converting HTML, XUL, or XBL files into a readable JS equivalent is a work in progress, as is accounting for the preprocessing that Mozilla files sometimes use. There is not yet a repository for this information, but bug 506128 contains more information.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:56 次

字数:1817

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文