anchor.diff:   */
   void _loadLibrary(String uriString) {
     var uri = _rootUri.resolve(uriString);
  -  var lib;
  -  var match = _inlineScriptRegExp.firstMatch(uriString);
  -  if (match != null) {
  -    var baseUri = Uri.parse(match.group(1));
  -    var list = _inlinedScriptMapping[baseUri];
  -    var pos = int.parse(match.group(2), onError: (_) => -1);
  -    if (list != null && pos >= 0 && pos < list.length && list[pos] != null) {
  -      lib = _libs[list[pos]];
  -    }
  -  } else if (uri.path.startsWith(_packageRoot)) {
  +  var lib = _libs[uri];
  +  if (uri.path.startsWith(_packageRoot) && uri.path.endsWith('.dart')) {
       var packageUri =
           Uri.parse('package:${uri.path.substring(_packageRoot.length)}');
  -    lib = _libs[packageUri];
  -    if (lib == null) {
  -      lib = _libs[uri];
  -    }
  -  } else {
  -    lib = _libs[uri];
  -  }
  +    var canonicalLib = _libs[packageUri];
  +    if (canonicalLib != null) {
  +      lib = canonicalLib;
  +    }
  +  }
  +
     if (lib == null) {
       print('warning: $uri library not found');
       return;
  
positive.code:   if (seen.contains(doc)) return scripts;
    seen.add(doc);
  
    var inlinedScriptCount = 0;
    for (var node in doc.queryAll('script,link[rel="import"]')) {
      if (node is LinkElement) {
        _discoverScripts(node.import, node.href, seen, scripts);
      } else if (node is ScriptElement && node.type == 'application/dart') {
        var url = node.src;
        if (url != '') {
          // TODO(sigmund): consider either normalizing package: urls or add a
          // warning to let users know about cannonicalization issues.
          scripts.add(url);
        } else {
          // We generate a unique identifier for inlined scripts which we later
          // translate to the unique identifiers used by Dartium. Dartium uses
          // line/column number information which we can't compute here.
          scripts.add('$baseUri:$inlinedScriptCount');
          inlinedScriptCount++;
        }
      }
    }
  
negative.code: final String _packageRoot =
      '${path.dirname(Uri.parse(window.location.href).path)}/packages/';
  
  /**
   * Reads the library at [uriString] (which can be an absolute URI or a relative
   * URI from the root library), and:
  