still hitting the heap limit, now with a large string (few hundred lines Im guessing)
<--- Last few GCs --->
[11166:0x5037b60] 17002 ms: Mark-sweep 1327.7 (1588.0) -> 1020.3 (1076.0) MB, 373.9 / 0.0 ms (+ 12.3 ms in 2 steps since start of marking, biggest step 6.6 ms, walltime since start of marking 3441 ms) allocation failure GC in old space requested
[11166:0x5037b60] 17558 ms: Mark-sweep 1300.6 (1355.6) -> 294.8 (348.8) MB, 103.8 / 0.0 ms (+ 0.4 ms in 1 steps since start of marking, biggest step 0.4 ms, walltime since start of marking 383 ms) allocation failure GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x53ef4151ff9 <JSObject>
2: replace(this=0x2ccb70f82201 <Very long string[79706321]>,0x27dd7d0c31d9 <JSRegExp <String[10]\: [\\\\"\x08\x0c\n\r\x09]>>,0x27dd7d0c5f89 <JSFunction (sfi = 0x177309c99ef1)>)
4: quote_string [<embedded>:1696] [bytecode=0x177309c9a049 offset=105](this=0x3eb3ba303361 <Object map = 0x2ab7f6caaf21>,a=0x2ccb70f82201 <Very long string[79706321]>)
6: pr_writer_impl [<embedded>:1700] [bytec...
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/bin/lumo]
2: 0x138d9dc [/usr/bin/lumo]
3: v8::Utils::ReportOOMFailure(char const*, bool) [/usr/bin/lumo]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/bin/lumo]
5: v8::internal::Heap::AllocateRawFixedArray(int, v8::internal::PretenureFlag) [/usr/bin/lumo]
6: v8::internal::Heap::AllocateFixedArrayWithFiller(int, v8::internal::PretenureFlag, v8::internal::Object*) [/usr/bin/lumo]
7: v8::internal::Factory::NewFixedArrayWithHoles(int, v8::internal::PretenureFlag) [/usr/bin/lumo]
8: 0x11f8f3c [/usr/bin/lumo]
9:
v8::internal::Runtime_RegExpExecMultiple(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/bin/lumo]
10: 0xbc1b8c046fd
Process inf-clojure aborted (core dumped)