Skip to content

Commit

Permalink
first argument passed is no longer a duktape instance #17
Browse files Browse the repository at this point in the history
  • Loading branch information
mamod committed Apr 29, 2016
1 parent 45e7d75 commit 31bc538
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ JavaScript::Duktape - Perl interface to Duktape embeddable javascript engine

#set function to be used from javascript land
$js->set('write' => sub {
my $duk = shift;
print $_[0], "\n";
});

Expand Down Expand Up @@ -167,7 +166,6 @@ you can translate duktape api to perl
#and here is how we can implement it in JavaScript::Duktape

$duk->push_c_function(sub {
my $duk = shift;
my $num1 = $duk->get_int(0);
my $num2 = $duk->get_int(1);

Expand Down
2 changes: 0 additions & 2 deletions lib/JavaScript/Duktape.pm
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,6 @@ JavaScript::Duktape - Perl interface to Duktape embeddable javascript engine
#set function to be used from javascript land
$js->set('write' => sub {
my $duk = shift;
print $_[0], "\n";
});
Expand Down Expand Up @@ -1107,7 +1106,6 @@ you can translate duktape api to perl
#and here is how we can implement it in JavaScript::Duktape
$duk->push_c_function(sub {
my $duk = shift;
my $num1 = $duk->get_int(0);
my $num2 = $duk->get_int(1);
Expand Down

0 comments on commit 31bc538

Please sign in to comment.