Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 987faaf

Browse files
author
Dart CI
committed
Version 2.19.0-400.0.dev
Merge 99b3dff into dev
2 parents 9317ff2 + 99b3dff commit 987faaf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/dev_compiler/lib/src/kernel/compiler.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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));

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 19
2929
PATCH 0
30-
PRERELEASE 399
30+
PRERELEASE 400
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)