You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The js-interop tests are breaking under dart2dart as properties forwarded to JS (and handled by NoSuchMethod) are renamed. E.g., the following is accessing container.Foo from the top-level JS context:
The js-interop tests are breaking under dart2dart as properties forwarded to JS (and handled by NoSuchMethod) are renamed. E.g., the following is accessing container.Foo from the top-level JS context:
final Foo2 = js.context.container.Foo;
and breaking as it is converted to:
final Foo2=p_context.container.p_Foo;
by dart2dart. Here's the error:
Expectation: js instantiation : new Foo(). Caught NoSuchMethodError : method not found: 'p_Foo' Receiver: Instance of 'Proxy' Arguments: []
Proxy._forward http://127.0.0.1:3030/Users/vsm/git/js-interop/test/js/browser_tests.dart 569:6887
Proxy.noSuchMethod http://127.0.0.1:3030/Users/vsm/git/js-interop/test/js/browser_tests.dart 569:6535
main.<anonymous closure> http://127.0.0.1:3030/Users/vsm/git/js-interop/test/js/browser_tests.dart 1:1333
The workaround is to use map notation when using dart2dart:
js.context['container']['Foo'];
The text was updated successfully, but these errors were encountered: