Skip to content

Commit

Permalink
Make #?js: NFG only be used on the js backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Oct 5, 2018
1 parent 1b91231 commit 04304d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build/gen-cat.nqp
Expand Up @@ -43,7 +43,7 @@ sub MAIN(*@ARGS) {
} elsif $in_omit {
print("\n");
} else {
if $_ ~~ /'#?js: NFG'/ {
if $backend eq 'js' && $_ ~~ /'#?js: NFG'/ {
print(subst($_, /nqp\:\:[chars|substr|iseq_s|iscclass]/,
-> $op {$op ~ 'nfg'}, :global));
} else {
Expand Down

0 comments on commit 04304d2

Please sign in to comment.