dart2js: "Maximum call stack size exceeded" when getter & setter for private fields in mixins #44636
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-dev-compiler
Hi folks,
Background:
Working on getting an iOS and Android Flutter project that uses MobX to work with Flutter Web.
When I building the project with
flutter build web
and serving it, everything's fine.However, when I try to run it with
flutter run -d chrome
I get a "Maximum call stack size exceeded" error:Steps to reproduce:
I've been able to peel away all the wizardry around MobX and reproduce the bug consistently in this gist: https://gist.github.com/noliran/27d10d009f847f55c232df0bc8353763
flutter run -d chrome
Potential workarounds:
--> Making the field public (
_test
->test
) solves the problem--> Removing the
Store
mixin solves the problem--> Running the output of
flutter build web
directlyNotes:
Environment:
Dart SDK version: 2.12.0-141.0.dev (dev) (Thu Dec 10 06:04:48 2020 -0800) on "macos_x64"
Flutter (Channel dev, 1.26.0-1.0.pre, on Mac OS X 10.15.6 19G2021 darwin-x64, locale en)
The text was updated successfully, but these errors were encountered: