On Thu, May 16, 2013 at 12:22 PM, Laurent Jouanneau
<
ljoua...@gmail.com> wrote:
>
http://slimerjs.org
> with CasperJS of course :)
This is GREAT news, thanks for your work
> I propose the support of a --slimerjs flag on the command line to
> indicate to use Slimerjs, with the support of a SLIMERJS_EXECUTABLE
> environment variable.
What do you think of a --engine option instead? so we could either
pass --engine=phantomjs (the default) or --engine=slimerjs and it
would be a bit more easy to add more engines in the future (hey, let
me dream)
> SlimerJS provides an API to indicate different paths where to load modules,
> for the require() function, and since SlimerJS has a different module loader
> than PhantomJS (it load modules in their own sandbox for example), it's a
> difficult to redefine the require() function like CasperJS does with
> patchRequire(). So I propose also a patch for the support of patchRequire():
>
https://github.com/laurentj/casperjs/commit/084980431d35787e9667e46939aa7809e8df207d
That require.paths is interesting, I think we should ask for it to be
supported in PhantomJS don't you think?
Let me review this this week-end. Thanks for all the work.
Cheers,
--
Nicolas Perriault
https://nicolas.perriault.net/
Phone: +33 (0) 660 92 08 67