Code with event bus that works ok in the Dartium throws following exception in dart2js:
Uncaught Error: NoSuchMethodError : method not found: 'Symbol("EventBus")'
Receiver: Instance of 'JsClassMirror'
Arguments: [] typed_data_dart2js.dart:26
Stack Trace:
Error
at wrapException (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:5463:13)
at JsMethodMirror._invoke$2 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:15669:15)
at JsClassMirror.newInstance$3 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:15102:29)
at JsClassMirror.newInstance$2 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:15107:17)
at ObjectFactory.create$3 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:86156:29)
at Container.getAs$1 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:85969:45)
at Container.get$1$bailout (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:85998:17)
at Container.get$1 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:85986:19)
at ObjectFactory._resolveConstructorArguments$2 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:86192:24)
at ObjectFactory.create$3 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:86156:74)
typed_data_dart2js.dart:26
Uncaught NoSuchMethodError : method not found: 'Symbol("EventBus")'
Receiver: Instance of 'JsClassMirror'
Arguments: []
Code with event bus that works ok in the Dartium throws following exception in dart2js: