| OLD | NEW |
| 1 library js.static; | 1 library js.static; |
| 2 | 2 |
| 3 // This is the public interface of js.dart | 3 // This is the public interface of js.dart |
| 4 // The exports must match those in static.dart | 4 // The exports must match those in static.dart |
| 5 export 'package:js/src/js_impl.dart'; | 5 export 'package:js/src/js_impl.dart' show JsInterface, JsGlobal, toJs, toDart, |
| 6 registerJsConstructorForType, registerFactoryForJsConstructor; |
| 6 export 'dart:js' show JsObject; | 7 export 'dart:js' show JsObject; |
| 7 export 'package:js/src/metadata.dart'; | 8 export 'package:js/src/metadata.dart'; |
| 8 | 9 |
| 9 void initializeJavaScript() { | 10 void initializeJavaScript() { |
| 10 throw new StateError("Non-transformed initialization is being called. " | 11 throw new StateError("Non-transformed initialization is being called. " |
| 11 "You are using js.dart in deployed mode, but you probably haven't " | 12 "You are using js.dart in deployed mode, but you probably haven't " |
| 12 "configured the initializer transformer, or you are calling " | 13 "configured the initializer transformer, or you are calling " |
| 13 "initializeJavaScript() somewhere other than main(). " | 14 "initializeJavaScript() somewhere other than main(). " |
| 14 "Try adding '- js/initializer' to your applications transformers."); | 15 "Try adding '- js/initializer' to your applications transformers."); |
| 15 } | 16 } |
| OLD | NEW |