Skip to content

[dart:js_interop] Can't box a List. #55114

Closed
@ykmnkmi

Description

@ykmnkmi

Got Uncaught Error: Attempting to box non-Dart object.:

import 'dart:js_interop';

void main() {
  print([1].toJSBox); // here
}

WASM prints [object Object].

Dart 3.3.0 on "windows_x64".

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)web-js-interopIssues that impact all js interop

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions