Skip to content

Commit bb6eb4f

Browse files
authored
Merge pull request #33 from mamod/2.2.1
2.2.1
2 parents 76713d4 + 007d004 commit bb6eb4f

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for Perl module JavaScript::Duktape
22

3+
2.2.1 2017 2017-06-22
4+
- remove debug code left by mistake
5+
- update docs
6+
37
2.2.0 2017 2017-06-02
48
- add sandboxing options and methods, timeout and max_memory
59
- update docs

README.pod

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
=encoding utf-8
2+
13
=head1 NAME
24

35
JavaScript::Duktape - Perl interface to Duktape embeddable javascript engine
@@ -51,7 +53,7 @@ setting number below 256k will croak.
5153
max_memory => 256 * 1024 * 2
5254

5355
You can resize the memory allowed to consume on different executions by calling
54-
C<resize_memory> method, see L<Sandboxing> section below.
56+
C<resize_memory> method, see L</Sandboxing> section below.
5557

5658
=item timout
5759

@@ -66,7 +68,7 @@ You can override this value later on another code evaluation by calling C<set_ti
6668

6769
$js->set_timeout(25);
6870

69-
See L<Sandboxing> section below
71+
See L</Sandboxing> section below
7072

7173
=back
7274

@@ -383,6 +385,12 @@ See C<examples/this.pl>
383385

384386
=back
385387

388+
=head1 DEAFULT JAVASCRIPT FUNCTIONS
389+
390+
JavaScript::Duktape has C<alert> and C<print> functions available as global
391+
functions to javascript, where C<alert> prints to STDERR and C<print> prints
392+
to STDOUT.
393+
386394
=head1 CAVEATS
387395

388396
=head2 VM methods

lib/JavaScript/Duktape.pm

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use warnings;
44
use Carp;
55
use Data::Dumper;
66
use Scalar::Util qw( weaken );
7-
our $VERSION = '2.2.0';
7+
our $VERSION = '2.2.1';
88

99
my $GlobalRef = {};
1010

@@ -350,7 +350,6 @@ sub push_perl {
350350
}
351351

352352
elsif ( $ref eq 'ARRAY' ) {
353-
$self->dump();
354353
my $arr_idx = $self->push_array();
355354
$stash->{$val} = $self->get_heapptr(-1);
356355
my $len = scalar @{$val};
@@ -980,6 +979,8 @@ package JavaScript::Duktape::Util;
980979
1;
981980

982981
__END__
982+
=encoding utf-8
983+
983984
=head1 NAME
984985
985986
JavaScript::Duktape - Perl interface to Duktape embeddable javascript engine
@@ -1033,7 +1034,7 @@ setting number below 256k will croak.
10331034
max_memory => 256 * 1024 * 2
10341035
10351036
You can resize the memory allowed to consume on different executions by calling
1036-
C<resize_memory> method, see L<Sandboxing> section below.
1037+
C<resize_memory> method, see L</Sandboxing> section below.
10371038
10381039
=item timout
10391040
@@ -1048,7 +1049,7 @@ You can override this value later on another code evaluation by calling C<set_ti
10481049
10491050
$js->set_timeout(25);
10501051
1051-
See L<Sandboxing> section below
1052+
See L</Sandboxing> section below
10521053
10531054
=back
10541055
@@ -1365,6 +1366,12 @@ See C<examples/this.pl>
13651366
13661367
=back
13671368
1369+
=head1 DEAFULT JAVASCRIPT FUNCTIONS
1370+
1371+
JavaScript::Duktape has C<alert> and C<print> functions available as global
1372+
functions to javascript, where C<alert> prints to STDERR and C<print> prints
1373+
to STDOUT.
1374+
13681375
=head1 CAVEATS
13691376
13701377
=head2 VM methods

0 commit comments

Comments
 (0)