Chromium Code Reviews| Index: lib/src/codegen/js_codegen.dart |
| diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart |
| index 1ca3993e1a8c9303368e813f868f5389a17da4ea..ef523317c81be789fb7bd9ecc4660e90997ea30a 100644 |
| --- a/lib/src/codegen/js_codegen.dart |
| +++ b/lib/src/codegen/js_codegen.dart |
| @@ -3500,7 +3500,9 @@ class JSGenerator extends CodeGenerator { |
| new JSCodegenVisitor(compiler, rules, library, _extensionTypes, fields); |
| var module = codegen.emitLibrary(unit); |
| var out = compiler.getOutputPath(library.source.uri); |
| - return writeJsLibrary(module, out, |
| + var flags = compiler.options; |
| + var serverUrl = flags.serverMode ? 'http://${flags.host}:${flags.port}/' : null; |
|
Jennifer Messerly
2015/12/16 18:40:07
format?
vsm
2016/01/07 21:22:03
Done.
|
| + return writeJsLibrary(module, out, compiler.inputBaseDir, serverUrl, |
| emitSourceMaps: options.emitSourceMaps, |
| arrowFnBindThisWorkaround: options.arrowFnBindThisWorkaround); |
| } |