Subject: | Wrong behavior 'call' method in JavaScript::Code::Function |
#!/usr/bin/perl
use strict;
use warnings;
use JavaScript::Code;
my $func = JavaScript::Code::Function->new({ name => 'foo' });
print $func->call;
__END__
Operation `""': no method found, argument in overloaded package
JavaScript::Code::Function at /System/Library/Perl/5.8.6/overload.pm
line 97.
I think, in call method of JavaScript::Code::Function,
wrong :
my $params = $self->args(@_)->{parameters} || $_[0] || [];
collect :
my $params = $self->__args(@_)->{parameters} || $_[0] || [];