From 38e0893e1c20668e4d280c294c6caf4239bf2ab9 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 9 Nov 2026 10:50:45 +0500 Subject: [PATCH] fix(android/v8): skip the ES module cleanup the Android build does not link --- NativeScript/napi/v8/jsr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NativeScript/napi/v8/jsr.cpp b/NativeScript/napi/v8/jsr.cpp index 4cfc3aae..39113913 100644 --- a/NativeScript/napi/v8/jsr.cpp +++ b/NativeScript/napi/v8/jsr.cpp @@ -265,7 +265,9 @@ napi_status js_free_runtime(jsr_ns_runtime runtime) { v8::Locker locker(jsr->isolate); // The ES module cache holds thread-local Globals per isolate. Release them // now; left to thread exit, they would be reset against a disposed isolate. +#ifndef __ANDROID__ v8impl::CleanupESModuleSystem(jsr->isolate); +#endif while (v8::Isolate::GetCurrent() == jsr->isolate) { jsr->isolate->Exit(); }