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

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart

Issue 1250633002: Add operators test to source_mapping_test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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: tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
index b0dfb21357da0137c2a3fa8aa3f6a4fe2f2bb242..fbb21fa6dea0281fcd364e32217e5341e6a69d75 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
@@ -253,7 +253,7 @@ class CodePointComputer extends js.BaseVisitor {
addLocation(null, nodeToString(node));
} else {
locationMap.forEach((int targetOffset, List<SourceLocation> locations) {
- String jsCode = positionToString(targetOffset);
+ String jsCode = nodeToString(node);
for (SourceLocation location in locations) {
addLocation(location, jsCode);
}

Powered by Google App Engine
This is Rietveld 408576698