Closed bird8693 closed 3 years ago
Memory leak?
This code triggers a stack overflow exception when converting the highly nested 'nullChars' array into a string for the 'nullChars==1' expression.
i think it isnt a memory leak. it is more like a "I AM GONNA FK UP YOUR COMPLETE SH*T" code. this can only be triggerd by a human
It behaves as expected and desired. It throws a stackoverflow exception and refuses to compare. This is the same as all other JS engines.
v8 throws a RangeError: Maximum call stack size exceeded SpiderMonkey throws an InternalError: too much recursion
Enviroment
asan output
poc: