mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 15:57:17 +00:00
7b9fb893d2
Refactor the implementation of 'invoke' for sharing between the embedding API, mirrors, and the VM service. The fixes various issues in the embedding API: - Dart_Invoke, Dart_GetField and Dart_SetField now generate the same NoSuchMethodErrors as dart:mirrors and ordinary Dart code. - Dart_GetField and Dart_SetField now accept a null receiver. - Dart_GetField now handles closurization. - Dart_Invoke now handles calls through function-typed getters. In mirrors, it also changes: - LibraryMirror.invoke/getField/setField now see members in the export namespace, not just local declarations. I.e., invocation with a LibraryMirror behaves the same ways as invocation against a library prefix in ordinary Dart code. Bug: https://github.com/dart-lang/sdk/issues/11870 Bug: https://github.com/dart-lang/sdk/issues/13643 Bug: https://github.com/dart-lang/sdk/issues/29893 Bug: https://github.com/dart-lang/sdk/issues/33417 Bug: https://github.com/dart-lang/sdk/issues/34006 Change-Id: I913e8eef16943a3e86eda55c8d122819e41ad7cc Reviewed-on: https://dart-review.googlesource.com/67302 Reviewed-by: Siva Annamalai <asiva@google.com> |
||
---|---|---|
.. | ||
bin | ||
include | ||
lib | ||
observatory | ||
platform | ||
tests/vm | ||
third_party | ||
tools | ||
vm | ||
.gitignore | ||
BUILD.gn | ||
codereview.settings | ||
configs.gni | ||
CPPLINT.cfg | ||
PRESUBMIT.py | ||
runtime_args.gni |