Index: sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
index 3418c9aec9fca13e7b506b5afbd867dc790794e0..65fe9d8be0b923cdf537bfb4c42e1d6b88793150 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
@@ -1696,9 +1696,9 @@ if (typeof $printHelperName === "function") { |
// [:getLine:] to transform offsets to line numbers in [SourceMapBuilder]. |
SourceFile compiledFile = new StringSourceFile(null, code); |
SourceMapBuilder sourceMapBuilder = |
- new SourceMapBuilder(sourceMapUri, fileUri); |
+ new SourceMapBuilder(sourceMapUri, fileUri, compiledFile); |
buffer.forEachSourceLocation(sourceMapBuilder.addMapping); |
- String sourceMap = sourceMapBuilder.build(compiledFile); |
+ String sourceMap = sourceMapBuilder.build(); |
compiler.outputProvider(name, 'js.map') |
..add(sourceMap) |
..close(); |