xxgreg / mustache

Mustache template Dart library
BSD 2-Clause "Simplified" License
57 stars 59 forks source link

Dart 2 runtime failures in tests #37

Open keertip opened 6 years ago

keertip commented 6 years ago

Running the tests on VM with --preview-dart-2, see the following failure

type 'List' is not a subtype of type 'List' of 'function result' where... type 'List' is not a subtype of type 'List' of 'function result' where List is from dart:core List is from dart:core ParameterMirror is from dart:mirrors dart:mirrors _LocalMethodMirror.parameters package:mustache/src/renderer.dart 252:50 Renderer._getNamedProperty

keertip commented 6 years ago

/cc @srawlins

srawlins commented 6 years ago

I'm looking at this.

srawlins commented 6 years ago

I think this is just blocked by https://github.com/dart-lang/sdk/issues/32889.

isoos commented 6 years ago

Another Dart2 runtime failure in the following location with the latest dev.59 SDK:

file:///Users/isoos/.pub-cache/hosted/pub.dartlang.org/mustache-1.0.0/lib/src/renderer.dart:94:20: Error: The method 'call' isn't defined for the class 'dart.core::Object'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
      value = value(context);