Chromium Code Reviews

Side by Side Diff: lib/runtime/dart/convert.js

Issue 1085723002: fixes for angular hello: String + and disable broken arg parsing (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var convert; 1 var convert;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let ASCII = new AsciiCodec(); 4 let ASCII = new AsciiCodec();
5 let _ASCII_MASK = 127; 5 let _ASCII_MASK = 127;
6 let _allowInvalid = Symbol('_allowInvalid'); 6 let _allowInvalid = Symbol('_allowInvalid');
7 let _nameToEncoding = Symbol('_nameToEncoding'); 7 let _nameToEncoding = Symbol('_nameToEncoding');
8 let Codec$ = dart.generic(function(S, T) { 8 let Codec$ = dart.generic(function(S, T) {
9 class Codec extends core.Object { 9 class Codec extends core.Object {
10 Codec() { 10 Codec() {
(...skipping 1382 matching lines...)
1393 let _LF = Symbol('_LF'); 1393 let _LF = Symbol('_LF');
1394 let _CR = Symbol('_CR'); 1394 let _CR = Symbol('_CR');
1395 class _LineSplitterSink extends StringConversionSinkBase { 1395 class _LineSplitterSink extends StringConversionSinkBase {
1396 _LineSplitterSink(sink$) { 1396 _LineSplitterSink(sink$) {
1397 this[_sink] = sink$; 1397 this[_sink] = sink$;
1398 this[_carry] = null; 1398 this[_carry] = null;
1399 super.StringConversionSinkBase(); 1399 super.StringConversionSinkBase();
1400 } 1400 }
1401 addSlice(chunk, start, end, isLast) { 1401 addSlice(chunk, start, end, isLast) {
1402 if (this[_carry] != null) { 1402 if (this[_carry] != null) {
1403 chunk = core.String['+'](this[_carry], chunk.substring(start, end)); 1403 chunk = dart.notNull(this[_carry]) + dart.notNull(chunk.substring(start, end));
1404 start = 0; 1404 start = 0;
1405 end = chunk.length; 1405 end = chunk.length;
1406 this[_carry] = null; 1406 this[_carry] = null;
1407 } 1407 }
1408 this[_carry] = _LineSplitterSink[_addSlice](chunk, start, end, isLast, thi s[_sink].add); 1408 this[_carry] = _LineSplitterSink[_addSlice](chunk, start, end, isLast, thi s[_sink].add);
1409 if (isLast) 1409 if (isLast)
1410 this[_sink].close(); 1410 this[_sink].close();
1411 } 1411 }
1412 close() { 1412 close() {
1413 this.addSlice('', 0, 0, true); 1413 this.addSlice('', 0, 0, true);
(...skipping 1020 matching lines...)
2434 exports.LineSplitter = LineSplitter; 2434 exports.LineSplitter = LineSplitter;
2435 exports.StringConversionSink = StringConversionSink; 2435 exports.StringConversionSink = StringConversionSink;
2436 exports.ClosableStringSink = ClosableStringSink; 2436 exports.ClosableStringSink = ClosableStringSink;
2437 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2437 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2438 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2438 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2439 exports.UTF8 = UTF8; 2439 exports.UTF8 = UTF8;
2440 exports.Utf8Codec = Utf8Codec; 2440 exports.Utf8Codec = Utf8Codec;
2441 exports.Utf8Encoder = Utf8Encoder; 2441 exports.Utf8Encoder = Utf8Encoder;
2442 exports.Utf8Decoder = Utf8Decoder; 2442 exports.Utf8Decoder = Utf8Decoder;
2443 })(convert || (convert = {})); 2443 })(convert || (convert = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine