From 04304d2e93ce2e9fa0870697944758552f8e9bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Murias?= Date: Fri, 5 Oct 2018 15:39:10 +0200 Subject: [PATCH] Make #?js: NFG only be used on the js backend --- tools/build/gen-cat.nqp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/gen-cat.nqp b/tools/build/gen-cat.nqp index c981b2f56f0..dcce33e10c6 100755 --- a/tools/build/gen-cat.nqp +++ b/tools/build/gen-cat.nqp @@ -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 {