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

Unified Diff: pkg/dev_compiler/lib/js/amd/dart_sdk.js

Side-by-side diff isn't available for this file because of its large size.
Issue 2365053003: fix #27421, DDC did not generate implicit super calls in some cases (Closed)
Patch Set: Created 4 years, 3 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:
Download patch
« no previous file with comments | « no previous file | pkg/dev_compiler/lib/js/common/dart_sdk.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/js/amd/dart_sdk.js
diff --git a/pkg/dev_compiler/lib/js/amd/dart_sdk.js b/pkg/dev_compiler/lib/js/amd/dart_sdk.js
index 631c053aeb57a5d863929e2a76b68ade16dc9f34..85b8b3ca9d59a8b6c08b484b2de0deb5c462d518 100644
--- a/pkg/dev_compiler/lib/js/amd/dart_sdk.js
+++ b/pkg/dev_compiler/lib/js/amd/dart_sdk.js
@@ -4267,12 +4267,20 @@ define([], function() {
});
_interceptors.JSMutableArray = JSMutableArray();
_interceptors.JSFixedArray$ = dart.generic(E => {
- class JSFixedArray extends _interceptors.JSMutableArray$(E) {}
+ class JSFixedArray extends _interceptors.JSMutableArray$(E) {
+ new() {
+ super.new();
+ }
+ }
return JSFixedArray;
});
_interceptors.JSFixedArray = JSFixedArray();
_interceptors.JSExtendableArray$ = dart.generic(E => {
- class JSExtendableArray extends _interceptors.JSMutableArray$(E) {}
+ class JSExtendableArray extends _interceptors.JSMutableArray$(E) {
+ new() {
+ super.new();
+ }
+ }
return JSExtendableArray;
});
_interceptors.JSExtendableArray = JSExtendableArray();
@@ -17069,6 +17077,7 @@ define([], function() {
class _ControllerStream extends async._StreamImpl$(T) {
new(controller) {
this[_controller$] = controller;
+ super.new();
}
[_createSubscription](onData, onError, onDone, cancelOnError) {
return this[_controller$][_subscribe](onData, onError, onDone, cancelOnError);
@@ -20112,6 +20121,7 @@ define([], function() {
new(pending) {
this[_pending] = pending;
this[_isUsed] = false;
+ super.new();
}
[_createSubscription](onData, onError, onDone, cancelOnError) {
if (dart.test(this[_isUsed])) dart.throw(new core.StateError("Stream has already been listened to."));
@@ -29215,6 +29225,7 @@ define([], function() {
convert._ErrorHandlingAsciiDecoderSink = class _ErrorHandlingAsciiDecoderSink extends convert.ByteConversionSinkBase {
new(utf8Sink) {
this[_utf8Sink] = utf8Sink;
+ super.new();
}
close() {
this[_utf8Sink].close();
@@ -29249,6 +29260,7 @@ define([], function() {
convert._SimpleAsciiDecoderSink = class _SimpleAsciiDecoderSink extends convert.ByteConversionSinkBase {
new(sink) {
this[_sink$] = sink;
+ super.new();
}
close() {
this[_sink$].close();
@@ -29537,6 +29549,9 @@ define([], function() {
});
const _add$1 = Symbol('_add');
convert._Base64EncoderSink = class _Base64EncoderSink extends convert.ByteConversionSinkBase {
+ new() {
+ super.new();
+ }
add(source) {
this[_add$1](source, 0, source[dartx.length], false);
}
@@ -29559,6 +29574,7 @@ define([], function() {
new(sink, urlSafe) {
this[_sink$] = sink;
this[_encoder] = new convert._BufferCachingBase64Encoder(urlSafe);
+ super.new();
}
[_add$1](source, start, end, isLast) {
let buffer = this[_encoder].encode(source, start, end, isLast);
@@ -29583,6 +29599,7 @@ define([], function() {
new(sink, urlSafe) {
this[_sink$] = sink;
this[_encoder] = new convert._Base64Encoder(urlSafe);
+ super.new();
}
[_add$1](source, start, end, isLast) {
let buffer = this[_encoder].encode(source, start, end, isLast);
@@ -29934,6 +29951,7 @@ define([], function() {
convert._ByteAdapterSink = class _ByteAdapterSink extends convert.ByteConversionSinkBase {
new(sink) {
this[_sink$] = sink;
+ super.new();
}
add(chunk) {
this[_sink$].add(chunk);
@@ -29958,6 +29976,7 @@ define([], function() {
this[_buffer] = typed_data.Uint8List.new(convert._ByteCallbackSink._INITIAL_BUFFER_SIZE);
this[_callback] = callback;
this[_bufferIndex] = 0;
+ super.new();
}
add(chunk) {
let freeCount = dart.notNull(this[_buffer][dartx.length]) - dart.notNull(this[_bufferIndex]);
@@ -31303,6 +31322,7 @@ define([], function() {
convert._Latin1DecoderSink = class _Latin1DecoderSink extends convert.ByteConversionSinkBase {
new(sink) {
this[_sink$] = sink;
+ super.new();
}
close() {
this[_sink$].close();
« no previous file with comments | « no previous file | pkg/dev_compiler/lib/js/common/dart_sdk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698