Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1275)

Unified Diff: frog/leg/scanner/scanner_task.dart

Issue 9535012: Introduce the legium component in test.dart, and start support for dart:dom and dart:html. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: frog/leg/scanner/scanner_task.dart
===================================================================
--- frog/leg/scanner/scanner_task.dart (revision 4753)
+++ frog/leg/scanner/scanner_task.dart (working copy)
@@ -87,12 +87,13 @@
LibraryElement loadLibrary(Uri uri, ScriptTag node) {
bool newLibrary = false;
+ String libraryName = uri.toString();
LibraryElement library =
- compiler.universe.libraries.putIfAbsent(uri.toString(), () {
+ compiler.universe.libraries.putIfAbsent(libraryName, () {
newLibrary = true;
Script script = compiler.readScript(uri, node);
LibraryElement element = new LibraryElement(script);
- native.checkNativeSupport(compiler, element);
+ native.checkNativeSupport(compiler, element, libraryName);
ahe 2012/02/29 17:35:27 I think you should pass the URI in here instead.
ngeoffray 2012/03/01 08:57:57 Done.
return element;
});
if (newLibrary) {

Powered by Google App Engine
This is Rietveld 408576698