Skip to content

index-out-of-bounds errors causes dart2wasm-compiled app to crash / display broken widgets #9611

@elliette

Description

@elliette

I noticed that if I explicitly trigger a RangeError when we setup our analytics (in _analytics_web.dart), it crashes our dart2wasm-compiled app, but not our dart2js app.

Need to investigate more, might be related to this comment here:

(Object error, StackTrace stack) {
// TODO(https://github.com/flutter/devtools/issues/7856): can we detect
// severe errors here that are related to dart2wasm? Otherwise we may
// crash DevTools for the user without any way for them to force reload
// with JS.
reportError(error, stack: stack, errorType: 'zoneGuarded');
throw error;

Metadata

Metadata

Assignees

Labels

P1high priority issues at the top of the work list, actively being worked on.dart2wasm

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions