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

Unified Diff: lib/src/compiler.dart

Issue 11305009: Fix dwc extension with latest js-interop, small fix to dwc, and updates to (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 2 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.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index 0fee0d2da3b91e348a92448047126d7c4e231d01..3f8d615145ef49531e00c566215eaebe7f2a2eb7 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -61,9 +61,13 @@ class Compiler {
options.outputDir != null ? new Path(options.outputDir) : mainDir;
// Normalize paths - all should be relative or absolute paths.
- if (_mainPath.isAbsolute || basePath.isAbsolute || outputPath.isAbsolute) {
+ bool anyAbsolute = _mainPath.isAbsolute || basePath.isAbsolute ||
+ outputPath.isAbsolute;
+ bool allAbsolute = _mainPath.isAbsolute && basePath.isAbsolute &&
+ outputPath.isAbsolute;
+ if (anyAbsolute && !allAbsolute) {
if (currentDir == null) {
- messages.error('internal error: could not normalize paths. Please make'
+ messages.error('internal error: could not normalize paths. Please make '
'the input, base, and output paths all absolute or relative, or '
'specify "currentDir" to the Compiler constructor', null);
return;
« extension/background.html ('K') | « extension/dart_proxy.js ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698