Skip to content

NoSuchMethodError: 'callMethodVarArgs' when calling getStats() #60

@renefloor

Description

@renefloor

Related issue: flutter-webrtc/flutter-webrtc#1781

In this release stats.callMethodVarArgs('forEach'.toJS, [ ... ]); was introduced:
439c8ef#diff-5523a536631aaa1af43c73105f4e719d85cac17e5e6d13f2b1f0bd69d533aabdL324-R339

Running this now on web gives the following error:

NoSuchMethodError: 'callMethodVarArgs'
method not found
Receiver: Instance of 'RtcStatsReport'
Arguments: ["forEach", Instance of 'JSArray<Object?>']

When reverting lines 326-339 to the old ones everything runs fine. What is the reason this change was made in the first place? Is the old code broken with wasm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions