Skip to content

Commit

Permalink
We only need the Actions class, no instace
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 20, 2018
1 parent bb88a03 commit 58592bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/Rakudo/Internals/JSON.pm6
Expand Up @@ -140,8 +140,7 @@ my class Rakudo::Internals::JSON {
}

method from-json($text) {
my $a = JSONPrettyActions.new();
my $o = JSONPrettyGrammar.parse($text, :actions($a));
my $o = JSONPrettyGrammar.parse($text, :actions(JSONPrettyActions));
JSONException.new(:$text).throw unless $o;
$o.ast;
}
Expand Down

0 comments on commit 58592bd

Please sign in to comment.