We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bind
1 parent cfe4ffc commit ddad4bbCopy full SHA for ddad4bb
src/core/c-frame.c
@@ -815,6 +815,8 @@
815
REBCNT n;
816
REBFLG selfish = !IS_SELFLESS(frame);
817
818
+ CHECK_STACK(&n);
819
+
820
for (; NOT_END(value); value++) {
821
if (ANY_WORD(value)) {
822
//Print("Word: %s", Get_Sym_Name(VAL_WORD_CANON(value)));
src/tests/units/crash-test.r3
@@ -232,6 +232,13 @@ foreach [n s] system/schemes [
232
;@@ https://github.com/Oldes/Rebol-issues/issues/767
233
--assert same? :greater? copy :greater? ;-no crash
234
235
+--test-- "recursive bind"
236
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2278
237
+ obj: make object! [x: 10]
238
+ blk: copy [x]
239
+ append/only blk blk
240
+ --assert all [error? e: try [bind block obj] e/id = 'stack-overflow]
241
242
===end-group===
243
244
~~~end-file~~~
0 commit comments