File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
pkg/dev_compiler/lib/src/kernel Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1731,7 +1731,10 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
17311731 var superCall = node.initializers.whereType <SuperInitializer >().firstOrNull;
17321732 var jsSuper = _emitSuperConstructorCallIfNeeded (cls, className, superCall);
17331733 if (jsSuper != null ) {
1734- body.add (jsSuper..sourceInformation = _nodeStart (superCall! ));
1734+ // TODO(50465) Fix incorrect assumption there should always be a super
1735+ // initializer here.
1736+ if (superCall != null ) jsSuper.sourceInformation = _nodeStart (superCall);
1737+ body.add (jsSuper);
17351738 }
17361739
17371740 body.add (_emitFunctionScopedBody (fn));
Original file line number Diff line number Diff line change @@ -27,5 +27,5 @@ CHANNEL dev
2727MAJOR 2
2828MINOR 19
2929PATCH 0
30- PRERELEASE 399
30+ PRERELEASE 400
3131PRERELEASE_PATCH 0
You can’t perform that action at this time.
0 commit comments