Open ggandor opened 3 years ago
Very possible!
When I did the Lua port recently I noticed that the tests were not checking the parenTrail.
I also noticed that this code related to parenTrail has no effect on the test suite.
I didn't do a deep dive on parenTrail; just made a mental note that there is probably a bug here that needs further evaluation.
Javascript’s slice does a shallow copy, and every use of openers
here is using that, so I think this is fine right?
Were you thinking of splice which mutates the array?
Shouldn't
openers
be at least a shallow copy here? (The same goes for the Python and Lua ports that implement v3.) I just looked into the Rust version as a sanity check, there they are indeed cloning the stack.