Permalink
Browse files

Fix a bug in ::dive

  • Loading branch information...
1 parent 7be5792 commit d6ca80df2d31081042c8d487ed32d9de18645b35 Max Maischein committed Apr 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/MozRepl/RemoteObject/Methods.pm
@@ -232,10 +232,10 @@ forest with Perl, but otherwise identical.
sub dive {
my ($self,@path) = @_;
- die unless id($self);
my $id = id($self);
+ die unless $id;
my $rn = bridge($self)->name;
- (my $path) = transform_arguments($self)->(\@path);
+ (my $path) = transform_arguments($self,\@path);
my $data = bridge($self)->unjson(<<JS);
$rn.dive($id,$path)

0 comments on commit d6ca80d

Please sign in to comment.