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
FIREBASE WARNING: Exception was thrown by user callback. NoSuchMethodError: method not found: 'call'
Receiver: Closure 'AppComponent_closure'
Arguments: [null, null]
at dart.wrapException (http://localhost:8080/main.dart.js:2818:17)
at AppComponent_closure.dart.Object.noSuchMethod$1 (http://localhost:8080/main.dart.js:21524:17)
at J.noSuchMethod$1$ (http://localhost:8080/main.dart.js:26288:39)
at dart.Primitives_functionNoSuchMethod (http://localhost:8080/main.dart.js:2723:16)
at dart.Primitives__genericApplyFunctionWithPositionalArguments (http://localhost:8080/main.dart.js:2758:20)
at dart.Primitives_applyFunctionWithPositionalArguments (http://localhost:8080/main.dart.js:2744:16)
at dart._callDartFunctionFast (http://localhost:8080/main.dart.js:23496:16)
at http://localhost:8080/main.dart.js:23488:18
at https://www.gstatic.com/firebasejs/3.0.2/firebase.js:346:688
at https://www.gstatic.com/firebasejs/3.0.2/firebase.js:541:48
when i call this (the error is in allowInterop, without this is working fine)
for method names that are not valid dart names you have to prefix them with
JS$
so
JS$catch
That will work in dart2js but support still needs to be added for dartium but will be straightforward to add.
jacob314
changed the title
js-interop:
Need to support JS methods with names that are not valid Dart keywords
Jul 8, 2016
Hi
Describe the issue you're seeing
I try to make a Dart version of the firebase 3 js. I need to create an external 'catch' method.
Does it happen in Dartium or when compiled to JavaScript?
When compiled to JavaScript
dart --version
Dart VM version: 1.16.0 (Tue Apr 26 14:18:21 2016) on "linux_x64"
pubspec.lock
js: ^0.6.0
Failing code:
Also i recive that error
when i call this (the error is in allowInterop, without this is working fine)
The text was updated successfully, but these errors were encountered: