File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ // The Dart Project Fuzz Tester (1.101).
6
+ // Program generated as:
7
+ // dart dartfuzz.dart --seed 3834582911 --no-fp --no-ffi --flat
8
+ // @dart=2.14
9
+
10
+ class X0 {
11
+ @pragma ("vm:entry-point" )
12
+ @pragma ("vm:never-inline" )
13
+ call () {}
14
+ }
15
+
16
+ class X2 with X0 {
17
+ call () {
18
+ throw "null" ;
19
+ }
20
+ }
21
+
22
+ main () {
23
+ try {
24
+ X2 ()();
25
+ } catch (e, st) {
26
+ print ('X2() throws' );
27
+ }
28
+ }
Original file line number Diff line number Diff line change @@ -1600,7 +1600,9 @@ void Precompiler::AddAnnotatedRoots() {
1600
1600
!function.IsSetterFunction ()) {
1601
1601
function2 = function.ImplicitClosureFunction ();
1602
1602
functions_with_entry_point_pragmas_.Insert (function2);
1603
- AddFunction (function2, RetainReasons::kEntryPointPragma );
1603
+ if (!function.is_abstract ()) {
1604
+ AddFunction (function2, RetainReasons::kEntryPointPragma );
1605
+ }
1604
1606
1605
1607
// Not `function2`: Dart_GetField will lookup the regular function
1606
1608
// and get the implicit closure function from that.
You can’t perform that action at this time.
0 commit comments