Index: lib/src/codegen/js_printer.dart |
diff --git a/lib/src/codegen/js_printer.dart b/lib/src/codegen/js_printer.dart |
index 3253771dec5ec7256401b36bc74aa29db425817e..2fd19f05c1204a4a50f0bb31adbc79daffee0d77 100644 |
--- a/lib/src/codegen/js_printer.dart |
+++ b/lib/src/codegen/js_printer.dart |
@@ -84,7 +84,8 @@ class SourceMapPrintingContext extends JS.JavaScriptPrintingContext { |
} |
} |
- SourceLocation _location(int offset) => locationForOffset(unit, uri, offset); |
+ SourceLocation _location(int offset) => |
+ locationForOffset(unit.lineInfo, uri, offset); |
Uri _makeRelativeUri(Uri src) { |
return new Uri(path: path.relative(src.path, from: outputDir)); |