From 9e3635c790dfd3ebca675099daae73bb82fcd6f6 Mon Sep 17 00:00:00 2001 From: Johnni Winther Date: Wed, 11 Oct 2023 10:08:43 +0000 Subject: [PATCH] [cfe] Add token_leak_dart2js_test This uses `token_leak_test.dart` to check that we can compile dart2js without leaking tokens. Change-Id: I78a419d722a4b017f1bc1e77933f8f54b4cff175 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330061 Reviewed-by: Jens Johansen Commit-Queue: Johnni Winther --- pkg/front_end/test/token_leak_dart2js_test.dart | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkg/front_end/test/token_leak_dart2js_test.dart diff --git a/pkg/front_end/test/token_leak_dart2js_test.dart b/pkg/front_end/test/token_leak_dart2js_test.dart new file mode 100644 index 00000000000..fcc09e08dd4 --- /dev/null +++ b/pkg/front_end/test/token_leak_dart2js_test.dart @@ -0,0 +1,9 @@ +// Copyright (c) 2023, 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. + +import 'token_leak_test.dart' as test; + +Future main() async { + await test.main(['--no-sdk', 'pkg/compiler/lib/src/dart2js.dart']); +}