summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sv.c1
-rw-r--r--t/porting/ss_dup.t2
2 files changed, 2 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index b44d7a1230..c28ed7d1d5 100644
--- a/sv.c
+++ b/sv.c
@@ -12822,6 +12822,7 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param)
/* fall through */
case SAVEt_FREESV:
case SAVEt_MORTALIZESV:
+ case SAVEt_READONLY_OFF:
sv = (const SV *)POPPTR(ss,ix);
TOPPTR(nss,ix) = sv_dup_inc(sv, param);
break;
diff --git a/t/porting/ss_dup.t b/t/porting/ss_dup.t
index 2cb74c9357..81435ced8a 100644
--- a/t/porting/ss_dup.t
+++ b/t/porting/ss_dup.t
@@ -1,6 +1,6 @@
#!perl
-@TODO = qw [ SAVEt_READONLY_OFF SAVEt_SAVESWITCHSTACK
+@TODO = qw [ SAVEt_SAVESWITCHSTACK
SAVEt_STACK_CXPOS ];
@TODO{@TODO} = ();