Skip to content

Commit eea7372

Browse files
committed
FIX: PROTECT-ed series are not protected against REMOVE-EACH
fixes: metaeducation/rebol-issues#1780 metaeducation/rebol-issues#2272
1 parent 829bd78 commit eea7372

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/n-loop.c

+3
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@
310310
}
311311
}
312312

313+
if (mode==1 && IS_PROTECT_SERIES(series))
314+
Trap0(RE_PROTECTED);
315+
313316
windex = index;
314317

315318
// Iterate over each value in the series block:

0 commit comments

Comments
 (0)