|
|
Don't double-escape strings in the VM Service, and don't use \u0000 to determine the string length.
This makes characters above ASCII to display as themselves in Observatory, strings with \u0000 in the middle not to be truncated, and avoids a bug in the previous escaping where a non-ASCII character in the last position would have its escaped representation cut off.
R=johnmccutchan@google.com
Committed: https://code.google.com/p/dart/source/detail?r=40060
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1837 lines, -1629 lines) |
Patch |
 |
M |
runtime/bin/vmservice/observatory/deployed/web/index.html
|
View
|
1
2
3
4
5
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/deployed/web/index.html_bootstrap.dart.js
|
View
|
1
2
3
4
5
|
132 chunks |
+770 lines, -738 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/deployed/web/index_devtools.html
|
View
|
1
2
3
4
5
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/deployed/web/index_devtools.html_bootstrap.dart.js
|
View
|
1
2
3
4
5
|
132 chunks |
+770 lines, -738 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/instance_ref.html
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/instance_view.html
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/lib/src/elements/instance_view.html
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/lib/src/elements/observatory_element.dart
|
View
|
1
2
3
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/lib/src/service/object.dart
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/test/contexts_test.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
runtime/bin/vmservice/observatory/test/string_escaping_test.dart
|
View
|
1
2
|
1 chunk |
+81 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/vmservice/observatory/tests/ui/inspector.dart
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/json_stream.h
|
View
|
1
2
3
|
5 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/json_stream.cc
|
View
|
1
2
3
|
3 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.h
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.cc
|
View
|
1
2
3
4
|
5 chunks |
+37 lines, -87 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object_test.cc
|
View
|
1
2
3
4
|
2 chunks |
+46 lines, -51 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/report_test.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/service_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 9 (3 generated)
|