Index: pkg/source_maps/test/parser_test.dart |
diff --git a/pkg/source_maps/test/parser_test.dart b/pkg/source_maps/test/parser_test.dart |
index 1c32cbd349a0c18b660b1647857f08fc624063a9..c99acb2f10ac4eba95a86a1001a0cac144b3744d 100644 |
--- a/pkg/source_maps/test/parser_test.dart |
+++ b/pkg/source_maps/test/parser_test.dart |
@@ -4,7 +4,7 @@ |
library test.parser_test; |
-import 'dart:json' as json; |
+import 'dart:convert'; |
import 'package:unittest/unittest.dart'; |
import 'package:source_maps/source_maps.dart'; |
import 'common.dart'; |
@@ -19,7 +19,7 @@ main() { |
}); |
test('parse + json', () { |
- var mapping = parse(json.stringify(EXPECTED_MAP)); |
+ var mapping = parse(JSON.encode(EXPECTED_MAP)); |
check(outputVar1, mapping, inputVar1, false); |
check(outputVar2, mapping, inputVar2, false); |
check(outputFunction, mapping, inputFunction, false); |