a14n / dart-js-wrapping

With that package you will be able to easilly wrap JS library in Dart.
https://pub.dartlang.org/packages/js_wrapping
Other
43 stars 16 forks source link

Error from "Function should be wrap/unwrap" test #16

Closed sestegra closed 7 years ago

sestegra commented 7 years ago

Environment

Scenario

$ dart tool/build.dart
$ pub run test -p dartium
0:10 +45 -7: test/types_handling_test.dart: Function should be wrap/unwrap [E]
  type '(int) => dynamic' is not a subtype of type 'JsFunction' of 'f' where
    JsFunction is from dart:js

  types_handling_test.g.dart 67:27           __codec3.<fn>
  package:js_wrapping/util/codec.dart 46:56  _Converter.convert
  dart:convert                               Codec.decode
  types_handling_test.g.dart 117:41          A.simpleFunc
  types_handling_test.dart 97:14             main.<fn>
a14n commented 7 years ago

Is it fixed by #15 ?

sestegra commented 7 years ago

Unfortunately not I opened this issue because of it.