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

Unified Diff: lib/src/compiler/module_builder.dart

Issue 1917863005: Qualify library names in packages (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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: lib/src/compiler/module_builder.dart
diff --git a/lib/src/compiler/module_builder.dart b/lib/src/compiler/module_builder.dart
index 0b2be9159c0d21123dffe4184d179ea5b4f44e84..98e358544d867b824b269e6540672186b96bc22e 100644
--- a/lib/src/compiler/module_builder.dart
+++ b/lib/src/compiler/module_builder.dart
@@ -150,7 +150,7 @@ class NodeModuleBuilder extends _ModuleBuilder {
/// Escape [name] to make it into a valid identifier.
String pathToJSIdentifier(String name) {
- name = path.basenameWithoutExtension(name);
+ name = path.withoutExtension(name);
Jennifer Messerly 2016/04/26 22:59:33 hmmm, this change seems bad for absolute paths, ar
if (name.length == 0) return r'$';
// Escape any invalid characters

Powered by Google App Engine
This is Rietveld 408576698