Skip to content

Dynamic property access on js object not working on release mode #59837

@MarcoPeli

Description

@MarcoPeli

Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter.git
Framework - revision 17025dd882 - Engine - revision cb4b5fff73 - Tools - Dart 3.6.0 - DevTools 2.40.2

My use case is reading event.target.result from web package indexedDB. But we don't need to go that far to reproduce the error. Check the dartpad code running fine on debug mode: https://dartpad.dev/?id=25d7be1f405f153d24bac3d862adcd58

image

Now you need to run same code on release mode. Dartpad don't allow it but you can check here: https://marcopeli.github.io/temp/ opening the console to see the error bellow:

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions