Files
sdk/runtime/tools/dartfuzz/flag_fuzzer_dart2js.dart
T
Ryan Macnak 9f9be9d3ea [dartfuzz] Fix flag_fuzzer_dart2js AOT steps.
Change-Id: I1f5834fcf16c1636949492d4d5e529daed68e9db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/509100
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2026-06-03 20:14:54 -07:00

21 lines
682 B
Dart

// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Invokes dart2js with various VM modes and flags, checking for crashes or
// differences in output compared to the default.
import "flag_fuzzer.dart";
Future<void> main() => flagFuzz(
(String output) => [
"pkg/compiler/lib/src/dart2js.dart",
"--invoker=test",
"--platform-binaries=out/ReleaseX64",
"--out=$output",
"--no-source-maps", // Otherwise output includes path
"pkg/compiler/lib/src/util/memory_compiler.dart",
],
"js",
);