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

Unified Diff: test/codegen/expect/dart/convert.js

Issue 1023543002: Enable inference in the core libs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « test/codegen/expect/dart/async.js ('k') | test/codegen/expect/dart/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/dart/convert.js
diff --git a/test/codegen/expect/dart/convert.js b/test/codegen/expect/dart/convert.js
index 2808a0bb499d26b101746705ab7a63f222dda654..19f69cbc34da9b60dceefdf0b5369a2b781b0140 100644
--- a/test/codegen/expect/dart/convert.js
+++ b/test/codegen/expect/dart/convert.js
@@ -252,7 +252,7 @@ var convert;
let _roundToPowerOf2 = Symbol('_roundToPowerOf2');
class _ByteCallbackSink extends ByteConversionSinkBase {
_ByteCallbackSink(callback) {
- this[_buffer] = new typed_data.Uint8List(dart.as(_ByteCallbackSink._INITIAL_BUFFER_SIZE, core.int));
+ this[_buffer] = new typed_data.Uint8List(_ByteCallbackSink._INITIAL_BUFFER_SIZE);
this[_callback] = callback;
this[_bufferIndex] = 0;
super.ByteConversionSinkBase();
@@ -1447,7 +1447,7 @@ var convert;
}
writeCharCode(charCode) {
this[_buffer].writeCharCode(charCode);
- if (this[_buffer].length['>'](_StringConversionSinkAsStringSinkAdapter._MIN_STRING_SIZE))
+ if (dart.notNull(this[_buffer].length) > dart.notNull(_StringConversionSinkAsStringSinkAdapter._MIN_STRING_SIZE))
this[_flush]();
}
write(o) {
@@ -1460,7 +1460,7 @@ var convert;
if (o === void 0)
o = "";
this[_buffer].writeln(o);
- if (this[_buffer].length['>'](_StringConversionSinkAsStringSinkAdapter._MIN_STRING_SIZE))
+ if (dart.notNull(this[_buffer].length) > dart.notNull(_StringConversionSinkAsStringSinkAdapter._MIN_STRING_SIZE))
this[_flush]();
}
writeAll(objects, separator) {
@@ -1694,7 +1694,7 @@ var convert;
let _fillBuffer = Symbol('_fillBuffer');
class _Utf8Encoder extends core.Object {
_Utf8Encoder() {
- this[_Utf8Encoder$withBufferSize](dart.as(_Utf8Encoder._DEFAULT_BYTE_BUFFER_SIZE, core.int));
+ this[_Utf8Encoder$withBufferSize](_Utf8Encoder._DEFAULT_BYTE_BUFFER_SIZE);
}
_Utf8Encoder$withBufferSize(bufferSize) {
this[_buffer] = _createBuffer(bufferSize);
« no previous file with comments | « test/codegen/expect/dart/async.js ('k') | test/codegen/expect/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698