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

Unified Diff: runtime/lib/convert_patch.dart

Issue 791323003: - Allow implementations to hook into the Utf8Decoder.convert method. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/js_lib/convert_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/convert_patch.dart
===================================================================
--- runtime/lib/convert_patch.dart (revision 43026)
+++ runtime/lib/convert_patch.dart (working copy)
@@ -30,6 +30,13 @@
// TODO(lrn): Recognize a fused decoder where the next step is JsonDecoder.
return super.fuse(next);
}
+
+ // Allow intercepting of UTF8 decoding when builtin lists are passed.
+ /* patch */
+ static String _convertIntercepted(
+ bool allowMalformed, List<int> codeUnits, int start, int end) {
+ return null; // This call was not intercepted.
+ }
}
class _JsonUtf8Decoder extends Converter<List<int>, Object> {
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/js_lib/convert_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698