Index: lib/runtime/dart_library.js |
diff --git a/lib/runtime/dart_library.js b/lib/runtime/dart_library.js |
index 087db99f16a0c0e000d909e4da53bb66aced216e..c9fd7f32a2da64ecaa6529560df3896c5b51f075 100644 |
--- a/lib/runtime/dart_library.js |
+++ b/lib/runtime/dart_library.js |
@@ -103,6 +103,9 @@ var dart_library; |
function import_(libraryName) { |
bootstrap(); |
let loader = libraries[libraryName]; |
+ if (loader == null) { |
+ dart_utils.throwError('library not found: ' + libraryName); |
+ } |
return loader.load(); |
} |
dart_library.import = import_; |