[dart2js] fix minified_names_test.

This test broke on a d8 roll back in January, since then other changes in the compiler
made the test drift further away from the original issue

Change-Id: I081dd48ae9eea2aec4117a377805c26675d2e557
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271862
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Sigmund Cherem 2022-12-10 01:24:54 +00:00 committed by Commit Queue
parent bb7e2c9b95
commit 5f765bcf8f
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ Future<D8Result> runWithD8(
List<String> dart2jsArgs = [
mainFile.toString(),
'-o$output',
'--packages=${Platform.packageConfig}',
if (Platform.packageConfig != null) '--packages=${Platform.packageConfig}',
]..addAll(options);
if (printSteps) print('Running: dart2js ${dart2jsArgs.join(' ')}');

View file

@ -4,7 +4,7 @@
// @dart = 2.7
// Error pattern: Cannot read property '([^']*)' of null
// Error pattern: Cannot read properties of null \(reading '([^']*)'\)
// Kind of minified name: instance
// Expected deobfuscated name: method

View file

@ -4,7 +4,7 @@
// @dart = 2.7
// Error pattern: Cannot read property '([^']*)' of null
// Error pattern: Cannot read properties of null \(reading '([^']*)'\)
// Kind of minified name: instance
// Expected deobfuscated name: method