We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c53dce commit dde2231Copy full SHA for dde2231
pkgs/jni/src/dartjni.c
@@ -471,6 +471,8 @@ Java_com_github_dart_1lang_jni_PortProxyBuilder__1invoke(
471
//
472
// When the current isolate is `null`, enter the main isolate that is pinned
473
// to the main thread first before invoking the `functionPtr`.
474
+ assert(Dart_CurrentIsolate_DL() == NULL ||
475
+ Dart_CurrentIsolate_DL() == (Dart_Isolate)isolateId);
476
bool mustEnterIsolate = Dart_CurrentIsolate_DL() == NULL && mayEnterIsolate;
477
if (mustEnterIsolate) {
478
Dart_EnterIsolate_DL((Dart_Isolate)isolateId);
0 commit comments