Remove dynamic call in _JsonMap.

Change-Id: I73297a65a59aeefee9f170aa640b9d5d20e7bf9e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262271
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
This commit is contained in:
Kallen Tu 2022-10-06 18:12:02 +00:00 committed by Commit Queue
parent e664ee9bb7
commit b3e57bd2f7
2 changed files with 1 additions and 4 deletions

View file

@ -12,9 +12,6 @@
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/async_patch.dart": {
"Dynamic access of 'iterator'.": 1
},
"org-dartlang-sdk:///lib/_internal/js_runtime/lib/convert_patch.dart": {
"Dynamic invocation of 'clear'.": 1
},
"org-dartlang-sdk:///lib/convert/json.dart": {
"Dynamic invocation of 'toJson'.": 1
},

View file

@ -221,7 +221,7 @@ class _JsonMap extends MapBase<String, dynamic> {
// Clear the list of keys to make sure we force
// a concurrent modification error if anyone is
// currently iterating over it.
_data.clear();
_computeKeys().clear();
}
_original = _processed = null;
_data = {};