| Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| index a9361fa98312210a305fe6515e639770ee5412a2..644c5ce3cbcee2cafab7e48fdd32c6b8f01f5961 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| @@ -2265,11 +2265,9 @@ if (typeof document !== 'undefined' && document.readyState !== 'complete') {
|
| if (generateSourceMap) {
|
| SourceFile compiledFile = new SourceFile(null, compiler.assembledCode);
|
| String sourceMap = buildSourceMap(mainBuffer, compiledFile);
|
| - // TODO(podivilov): We should find a better way to return source maps to
|
| - // compiler. Using diagnostic handler for that purpose is a temporary
|
| - // hack.
|
| - compiler.reportDiagnostic(
|
| - null, sourceMap, new api.Diagnostic(-1, 'source map'));
|
| + compiler.outputProvider('', 'js.map')
|
| + ..add(sourceMap)
|
| + ..close();
|
| }
|
| });
|
| return compiler.assembledCode;
|
|
|