Group
Extension

Matches 2

Mojo-Phantom ( J/JB/JBERGER/Mojo-Phantom-0.12.tar.gz, JBERGER, 2021; MetaCPAN )
Mojo-Phantom/lib/Mojo/Phantom.pm ( view source; MetaCPAN )
RSION = '0.12';
$VERSION = eval $VERSION;

use Mojo::Phantom::Process;

use Mojo::File;
use Mojo::JSON;
use Mojo::Template;
use Mojo::URL;
use JavaScript::Value::Escape;

use constant DEBUG => $ENV{MO
uire('system');
    var args = Array.prototype.slice.call(arguments);
    system.stdout.writeLine(JSON.stringify(args));
    system.stdout.writeLine('<%== $self->sep %>');
    system.stdout.flush();
 
= $bytes;
    while ($buffer =~ s/^(.*)\n$sep\n//) {
      my ($function, @args) = @{ Mojo::JSON::decode_json $1 };
      local *CORE::die  = sub { die  @_ } unless CAN_CORE_DIE;
      local *CORE::wa
Mojo-Phantom ( J/JB/JBERGER/Mojo-Phantom-0.12.tar.gz, JBERGER, 2021; MetaCPAN )
Mojo-Phantom/lib/Test/Mojo/Role/Phantom.pm ( view source; MetaCPAN )
l function and arguments for that function.
The function name and the arguments are serialized as JSON and then executed on the perl side.

If the function dies (or is L<CORE::die>), the test fails.


Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.