| line |
true |
false |
branch |
|
139
|
2 |
69 |
if ($timeout) |
|
140
|
1 |
1 |
unless JavaScript::Duktape::Vm::duk_sv_is_number($timeout) |
|
143
|
6 |
64 |
if ($max_memory) |
|
144
|
1 |
5 |
unless JavaScript::Duktape::Vm::duk_sv_is_number($max_memory) |
|
145
|
1 |
4 |
if $max_memory < 262144 |
|
191
|
2 |
39 |
if ($name =~ /\./) |
|
197
|
0 |
2 |
if ($duk->peval_string($others) != 0) |
|
202
|
0 |
2 |
if ($type != 6) |
|
223
|
0 |
1 |
if ($duk->peval != 0) |
|
236
|
0 |
6 |
if ($duk->peval != 0) |
|
250
|
9 |
19 |
if ($duk->peval_string($string) != 0) |
|
274
|
0 |
68 |
unless $duk |
|
281
|
68 |
0 |
if ($self->{'pid'} and $self->{'pid'} == $$) |
|
303
|
0 |
53 |
$^O eq 'MSWin32' ? : |
|
338
|
90 |
146984 |
if (my $ref = ref $val) { } |
|
339
|
1 |
89 |
if ($ref eq 'JavaScript::Duktape::NULL') { } |
|
|
2 |
87 |
elsif ($ref eq 'JavaScript::Duktape::Bool') { } |
|
|
12 |
75 |
elsif ($ref eq 'ARRAY') { } |
|
|
14 |
61 |
elsif ($ref eq 'HASH') { } |
|
|
43 |
18 |
elsif ($ref eq 'CODE') { } |
|
|
12 |
6 |
elsif ($ref eq 'JavaScript::Duktape::Object') { } |
|
|
0 |
6 |
elsif ($ref eq 'JavaScript::Duktape::Function') { } |
|
|
0 |
6 |
elsif ($ref eq 'JavaScript::Duktape::Pointer') { } |
|
|
6 |
0 |
elsif ($ref eq 'JavaScript::Duktape::Buffer') { } |
|
344
|
1 |
1 |
if ($val) { } |
|
357
|
2 |
30 |
if ($$stash{$val->[$idx]}) { } |
|
372
|
1 |
22 |
if ($v and $stash->{$v}) { } |
|
399
|
5 |
1 |
defined $$val ? : |
|
405
|
3 |
146981 |
if (not defined $val) { } |
|
|
146551 |
430 |
elsif (duk_sv_is_number($val)) { } |
|
421
|
0 |
239 |
unless ($heapptr) |
|
439
|
182 |
12128 |
if ($type == 1) { } |
|
|
8501 |
3627 |
elsif ($type == 5) { } |
|
|
2314 |
1313 |
elsif ($type == 4) { } |
|
|
5 |
1308 |
elsif ($type == 7) { } |
|
|
1286 |
22 |
elsif ($type == 6) { } |
|
|
16 |
6 |
elsif ($type == 3) { } |
|
|
3 |
3 |
elsif ($type == 2) { } |
|
|
3 |
0 |
elsif ($type == 8) { } |
|
458
|
444 |
842 |
if ($self->is_function($index)) |
|
467
|
5 |
4 |
if ($self->pcall_method($len) == 1) |
|
479
|
0 |
842 |
if ($stash->{$heapptr}) { } |
|
483
|
30 |
812 |
$isArray ? : |
|
494
|
1309 |
4435 |
if ($self->get_type(-1) == 6) { } |
|
496
|
63 |
1246 |
if ($stash->{$heapptr}) { } |
|
509
|
133 |
5611 |
if ($isArray) { } |
|
522
|
11 |
5 |
if ($bool == 1) { } |
|
562
|
146543 |
108 |
unless ($heap) |
|
601
|
23 |
146641 |
if ($err) |
|
622
|
39 |
146671 |
if (my $error = $@) |
|
623
|
22 |
17 |
if ($error =~ /^Duk::Error/i) { } |
|
633
|
146671 |
0 |
defined $ret ? : |
|
637
|
146671 |
39 |
defined $ret ? : |
|
644
|
1 |
3 |
unless duk_sv_is_number($timeout) |
|
652
|
0 |
2 |
unless duk_sv_is_number($max_memory) |
|
653
|
1 |
1 |
if $max_memory < 262144 |
|
707
|
5 |
8 |
${$_[0];} ? : |
|
728
|
0 |
5 |
${$_[0];} ? : |
|
770
|
0 |
522 |
if $method eq 'DESTROY' |
|
779
|
17 |
234 |
unless $refcount |
|
807
|
0 |
0 |
if $method eq 'DESTROY' |
|
828
|
0 |
522 |
if ($method eq 'new') |
|
833
|
0 |
0 |
if ($duk->pnew($len) != 0) |
|
845
|
379 |
143 |
if ($type == 6 or $type == 7) { } |
|
849
|
379 |
0 |
if ($duk->is_function(-1)) { } |
|
852
|
377 |
2 |
if (@_) { } |
|
854
|
3 |
374 |
if ref $_[0] eq 'NOARGS' |
|
885
|
136 |
379 |
if ($ref eq 'NEW') { } |
|
|
0 |
379 |
elsif ($ref eq 'HEAP') { } |
|
|
0 |
379 |
elsif ($ref eq 'DUK') { } |
|
898
|
379 |
136 |
unless $isNew |
|
900
|
211 |
332 |
if (ref $val eq 'CODE') { } |
|
908
|
136 |
379 |
if ($isNew) { } |
|
909
|
0 |
136 |
if ($duk->pnew($len) != 0) |
|
914
|
0 |
379 |
if ($duk->pcall_method($len) != 0) |
|
922
|
205 |
310 |
if ($type == 6 or $type == 7) { } |
|
934
|
377 |
7 |
if $doCall |
|
967
|
5 |
234 |
if ($duk->is_function(-1)) |