null
evaluated as undefined
in release mode on web (Chrome browser)
#50070
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-dart2js
This tracker is for issues related to:
Environment
dart --version
) -Dart SDK version: 2.18.1 (stable)
MacOSX
Chrome
There is a bug with how a
null
value is being evaluated, it is coming through asundefined
on the web when ran in release mode.For context, here is the pull request on FlutterFire that has a simple code illustration of the bug in the description.
In a nutshell:
If you wish to see a demonstration. Follow these steps:
melos bootstrap
within project so all packages are linked together.packages/cloud_firestore/cloud_firestore/example
in your terminal.flutter pub get
packages/cloud_firestore/cloud_firestore/example/lib/main.dart
:packages/cloud_firestore/cloud_firestore/example
directory, runflutter run --no-pub -d chrome --release
.null
) before it goes to the interop layer for JavaScript, you can add some logging here.data
will be the value that is passed intoset()
API.I think I'm in the right place 😅, but let me know if it should be elsewhere or if you need any further information. Thanks.
The text was updated successfully, but these errors were encountered: