mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:20:31 +00:00
3c75002cee
With this change the Dart Core Object members (`.hashCode`, `.runtimeType`, `.noSuchMethod()`, `.toString()`, and `operator ==`) are no longer installed onto the native JavaScript Object prototype. This is done because the Object prototype will be sealed as a security precaution in some environments to avoid prototype pollution exploits. This means that dispatching to these APIs will change when the compiler cannot know if the receiver may be null or a value from JavaScript interop. In those cases a call to a helper method is inserted instead. The helpers will probe for the API on the value, call it if available or execute a default version. NOTE: Many other native JavaScript prototypes are still modified. This change is only for the Object prototype. Issue: https://github.com/dart-lang/sdk/issues/49670 Change-Id: Iddb3a48e790dd414aa3254d729535c4408e99b3d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/310971 Reviewed-by: Srujan Gaddam <srujzs@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> |
||
---|---|---|
.. | ||
export | ||
extends_test | ||
js_util | ||
native_as_js_classes_static_test | ||
static_interop_test | ||
subtyping_test | ||
array_test.dart | ||
constructor_parameters_static_test.dart | ||
datetime_roundtrip_test.dart | ||
extends_static_test.dart | ||
external_extension_members_test.dart | ||
external_member_static_test.dart | ||
external_nonjs_static_test.dart | ||
external_static_test.dart | ||
implements_static_test.dart | ||
instanceof_test.dart | ||
is_check_and_as_cast_test.dart | ||
js_annotation_static_test.dart | ||
method_call_on_object_test.dart | ||
mock_test.dart | ||
no_library_annotation_test.dart | ||
null_test.dart | ||
object_apis_interop_values_test.dart | ||
object_apis_utils.dart | ||
operator_static_test.dart | ||
parameters_static_test.dart | ||
parameters_test.dart | ||
prototype_access_test.dart | ||
static_class_member_static_test.dart | ||
trust_types_annotation_test.dart | ||
trust_types_test.dart |