Commit graph

5 commits

Author SHA1 Message Date
Joshua Litt b714d1c356 [dart2js] Remove obsolete unittests.
Bug: https://github.com/dart-lang/sdk/issues/33072

Change-Id: I0f6d5d2595fdb5ceecdbec68acdab987829be770
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147780
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-05-12 17:16:39 +00:00
Joshua Litt 022a6a2da5 [dart2js] Delete generate_code_with_compile_time_errors_test.
Change-Id: If719a421785a298331cb1fd9fbb6dcf1d3d2841c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147240
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2020-05-08 12:23:49 +00:00
Nate Bosch d3c0d59706 Disallow non-external generative JS constructors
Towards #40434
Towards #38875
Fixes #33834

- Add a shared error message for a non-external constructor.
- Check for non-external non-factory constructors constructors in the JS interop
  checks.
- Remove commented out code in Dart2JS that used to handle this check.
- Clean up skipped tests due to the missing static error. The status in
  `legacy_status_dart2js.csv` has no behavior impact but is removed for
  completeness.
- Add `external` to a few test cases.
- Remove unused dart2js error message.
- Add `annotating` to hardcoded spelling list.
- Ignore missing example for web specific error message.
- Switch some dart2js error expectations to GENERIC since the message is no
  longer defined with other dart2js errors.

Non-external synthetic constructors are ignored for now. An upcoming change will
automatically convert these to external.

Change-Id: I3b4a042392826c528689d81c4255f5369a0a7a90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138043
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2020-03-06 17:06:39 +00:00
Karl Klose 16bb96aa25 [infra] Remove non-essential test expectations with comments from general status files
Change-Id: I8aa918b4065eaa9ae8e4501c6a77328659784f9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114848
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-10-01 06:18:59 +00:00
Karl Klose 9203453183 [infra] Remove non-essential test expectations with comments from dart2js status files
Change-Id: I55d13632e701f8c5627e418faaee71a09e48fe57
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114851
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-09-24 06:44:11 +00:00