Skip to content

Commit 6482f71

Browse files
committed
literal_subst doesn't take regexes, oops :)
fixes the heap snapshot profile
1 parent 60ad6fa commit 6482f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/moar/HLL/Backend.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ class HLL::Backend::MoarVM {
325325
}
326326
elsif nqp::isstr($obj) {
327327
if nqp::index($obj, '\\') {
328-
$obj := literal_subst($obj, /'\\'/, $escaped_backslash);
328+
$obj := literal_subst($obj, '\\', $escaped_backslash);
329329
}
330330
if nqp::index($obj, '"') {
331-
$obj := literal_subst($obj, /'"'/, $escaped_dquote);
331+
$obj := literal_subst($obj, '"', $escaped_dquote);
332332
}
333333
nqp::push_s(@pieces, '"');
334334
nqp::push_s(@pieces, $obj);

0 commit comments

Comments
 (0)