dart-sdk/tests
Nate Bosch 534e85866d Assert that allowInterop is used with constructors
Fixes a missing case where DDC allows unwrapped functions to flow to
JavaScript through constructor calls or anonymous object instantiation.

- Pass the `Member` through to `_emitArgumentList` in the case of
  constructor calls and object literals so that `isJsInterop` can be
  determined.
- Pass an optional `isJsArgument` member through for emitting named
  expressions. Previously I thought that no named arguments would be
  used for javascript calls, but they are used to create object literals
  for anonymous JS types.
- Add both anonymous and non-anonymous constructor invocation examples
  to the JS interop test.

Change-Id: I004642f3b2caccc0d8c26786f2bdcb081d135898
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131462
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2020-01-28 16:59:58 +00:00
..
angular
co19
co19_2
compiler Assert that allowInterop is used with constructors 2020-01-28 16:59:58 +00:00
corelib Updating iterator expected values from null to -1. 2020-01-18 02:55:28 +00:00
corelib_2
dart
ffi [vm/ffi] Add tests with very many arguments 2020-01-22 15:21:32 +00:00
kernel
language Analyzer: Don't do recursive flattening of FutureOr in await. 2020-01-28 11:16:07 +00:00
language_2 Analyzer: Don't do recursive flattening of FutureOr in await. 2020-01-28 11:16:07 +00:00
lib [test] Move and migrate dart:profiler tests. 2020-01-24 20:15:48 +00:00
lib_2 [test] Move and migrate dart:profiler tests. 2020-01-24 20:15:48 +00:00
modular
search
standalone
standalone_2 [vm] Cleanups in the native_stack_traces package. 2020-01-24 11:40:59 +00:00
legacy_status_dart2js.csv
light_unittest.dart
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.