ObservableSet.intersection
triggers "Maximum call stack size exceeded" stack overflow
#3919
Labels
ObservableSet.intersection
triggers "Maximum call stack size exceeded" stack overflow
#3919
Intended outcome:
Calling the newly implemented
ObservableSet.intersection
with anotherObservableSet
as the argument causes a stack overflow error. This is because anObservableSet
argument passesisES6Set
, thus callingintersection
on that set with the first set as the argument. Repeat ad infinitum until V8 decides it's had enough.observableSet.intersection(otherObservableSet)
should just work.Actual outcome:
"Maximum call stack size exceeded" in Chrome. Stack overflow.
How to reproduce the issue:
Here's an interactive version, just click the button.
Versions
mobx@6.13.1
The text was updated successfully, but these errors were encountered: