dart-sdk/tests/lib
Srujan Gaddam 1c534e5fd5 [dart2wasm/ddc/dart2js] Lower Function.toJS and JSExportedDartFunction.toDart
Lowers these extension methods to some helper functions instead of
allowInterop to improve performance and get consistent semantics.

Specifically:
- Function.toJS no longer gives you the same JSFunction when calling
toJS on the same function multiple times in the JS compilers.
- Adds fast calling syntax for functions with 0-5 args in the JS
compilers.
- Allows additional args to be passed to converted functions that
are omitted in the JS compilers.
- The static type now determines the number of args that can be
passed to the JS function in the JS compilers.
- Fixes an issue in dart2wasm where if too few arguments are
passed, the call may succeed due to conversion of undefined to
null.
- Adds throws when a user tries to wrap a JS function that
returned from Function.toJS in the JS compilers.

Closes https://github.com/dart-lang/sdk/issues/55515
Addresses https://github.com/dart-lang/sdk/issues/48186

CoreLibraryReviewExempt: Changes to docs only in API surface.
Change-Id: I41d864dc5e02b597d9f1c16c88e3c04872f28225
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368065
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2024-06-26 23:06:36 +00:00
..
analyzer
async [dart2wasm] Unskip lib/async/stream_periodic3_test 2024-05-29 12:48:24 +00:00
collection
convert
developer
fix_data_tests
html Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
isolate Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
js [dart2wasm/ddc/dart2js] Lower Function.toJS and JSExportedDartFunction.toDart 2024-06-26 23:06:36 +00:00
js_interop_unsafe
math
mirrors Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
typed_data Forgotten last patch-set for landed CL 2024-06-20 11:27:53 +00:00
web
lib.status [dart2wasm/ddc/dart2js] Lower Function.toJS and JSExportedDartFunction.toDart 2024-06-26 23:06:36 +00:00
lib_analyzer.status [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
lib_app_jit.status
lib_dart2js.status [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
lib_dartdevc.status [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
lib_kernel.status [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00
lib_precompiled.status
lib_vm.status [status_files] Cleanup status files 2024-06-12 10:21:23 +00:00