File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4143,16 +4143,17 @@ class QAST::CompilerJAST {
4143
4143
result(JAST::PushNVal. new ( : value($ node . value ) ), $ RT_NUM )
4144
4144
}
4145
4145
4146
+ my int $ split_point := 21845 ;
4146
4147
multi method as_jast (QAST ::SVal $ node , : $ want ) {
4147
- if nqp :: chars ($ node . value ) <= 65535 {
4148
+ if nqp :: chars ($ node . value ) <= $ split_point {
4148
4149
result(JAST::PushSVal. new ( : value($ node . value ) ), $ RT_STR )
4149
4150
}
4150
4151
else {
4151
4152
my @ chunks ;
4152
4153
my $ value := $ node . value ;
4153
- while nqp :: chars ($ value ) > 65535 {
4154
- nqp :: push (@ chunks , nqp :: substr ($ value , 0 , 65535 ));
4155
- $ value := nqp :: substr ($ value , 65535 );
4154
+ while nqp :: chars ($ value ) > $ split_point {
4155
+ nqp :: push (@ chunks , nqp :: substr ($ value , 0 , $ split_point ));
4156
+ $ value := nqp :: substr ($ value , $ split_point );
4156
4157
}
4157
4158
nqp :: push (@ chunks , $ value );
4158
4159
my $ il := JAST::InstructionList. new ();
You can’t perform that action at this time.
0 commit comments