fix typo
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index e61ea1e..5375a35 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -522,7 +522,7 @@
 /// Runtime files added to all applications when running the compiler in the
 /// command line.
 final defaultRuntimeFiles = () {
-  String coreToFile(Uri uri) => uri.toString().replace(':', '/') + '.js';
+  String coreToFile(Uri uri) => uri.toString().replaceAll(':', '/') + '.js';
 
   var files = [
     'harmony_feature_check.js',