michael@0: gczeal(2) michael@0: try { michael@0: (function () { michael@0: for each(l in [0, 0, 0]) { michael@0: print(''.replace(function () {})) michael@0: } michael@0: })() michael@0: } catch (e) {} michael@0: michael@0: x = gczeal(2) michael@0: try { michael@0: (function () { michael@0: for each(d in [x, x, x]) { michael@0: 'a'.replace(/a/, function () {}) michael@0: } michael@0: })() michael@0: } catch (e) {} michael@0: michael@0: /* Don't assert or segfault. Tests PIC resetting. */