4

Dart 1.20.1

Firefox 49 running on Ubuntu

I've got a Dart web app. When I run the generated JS in Firefox I get this error:

H.createRuntimeType is not a function

The line in question is:

 C.Type_KeyboardEvent_EaM = H.createRuntimeType("KeyboardEvent");

Is this something I'm doing or a bug in dart2js?

Alan Humphrey
  • 553
  • 2
  • 11
  • 1
    Hard to tell without seeing what you were doing but it could be a bug. – Günter Zöchbauer Oct 21 '16 at 21:24
  • You can try to set strong-mode and test the application in dartium with checked mode activated, you will probably get a better error message – Hadrien Lejard Oct 31 '16 at 07:27
  • What is the variable `H` set to? It may not be the type you were expecting. Also friendly suggestion to revise your variable naming strategy. Variables named `C` or `H` break multiple Airbnb style guide rules : https://github.com/airbnb/javascript#naming--descriptive – Mark Madej Oct 20 '17 at 04:09

0 Answers0