未验证 提交 79a53b2e 编写于 作者: R Ryan Macnak 提交者: GitHub

Roll Dart to df5036eb6e738c723339ed74c1e8ca93bea2570d. (#16936)

上级 bb17df75
......@@ -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
......
Signature: 3cc623c46feb1a616e6dc27b9168581f
Signature: c0d0a2e1f16f13bfd61d0ffb9d142ca7
UNUSED LICENSES:
......@@ -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;
}
......
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册