Roll Dart to df5036eb6e738c723339ed74c1e8ca93bea2570d. (flutter/engine#16936)

This commit is contained in:
Ryan Macnak
2020-03-04 13:45:24 -08:00
committed by GitHub
parent cdf1a0d498
commit ae7c21544b
3 changed files with 8 additions and 4 deletions

2
DEPS
View File

@@ -34,7 +34,7 @@ vars = {
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
# You can use //tools/dart/create_updated_flutter_deps.py to produce
# updated revision list of existing dependencies.
'dart_revision': '57462f9ca52000932d2ac82613808131650b440c',
'dart_revision': 'df5036eb6e738c723339ed74c1e8ca93bea2570d',
# WARNING: DO NOT EDIT MANUALLY
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py

View File

@@ -43,8 +43,12 @@ void DartPersistentValue::Clear() {
return;
}
DartIsolateScope scope(dart_state->isolate());
Dart_DeletePersistentHandle(value_);
if (Dart_CurrentIsolateGroup()) {
Dart_DeletePersistentHandle(value_);
} else {
DartIsolateScope scope(dart_state->isolate());
Dart_DeletePersistentHandle(value_);
}
dart_state_.reset();
value_ = nullptr;
}

View File

@@ -64,7 +64,7 @@ void DartWrappable::ClearDartWrapper() {
TONIC_CHECK(!LogIfError(Dart_SetNativeInstanceField(wrapper, kPeerIndex, 0)));
TONIC_CHECK(
!LogIfError(Dart_SetNativeInstanceField(wrapper, kWrapperInfoIndex, 0)));
Dart_DeleteWeakPersistentHandle(Dart_CurrentIsolate(), dart_wrapper_);
Dart_DeleteWeakPersistentHandle(dart_wrapper_);
dart_wrapper_ = nullptr;
this->ReleaseDartWrappableReference();
}