[gjs/ewlsh/fix-dynamic-module-resolution] auto realm in async callback
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/fix-dynamic-module-resolution] auto realm in async callback
- Date: Sat, 24 Jul 2021 02:57:50 +0000 (UTC)
commit cfca2ee35f6ba5fbe5b5771fa3f9b29ae2ae8124
Author: Evan Welsh <contact evanwelsh com>
Date: Fri Jul 23 19:57:44 2021 -0700
auto realm in async callback
gjs/internal.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gjs/internal.cpp b/gjs/internal.cpp
index a803eda4..325bf867 100644
--- a/gjs/internal.cpp
+++ b/gjs/internal.cpp
@@ -512,7 +512,7 @@ class PromiseData {
static void load_async_callback(GObject* file, GAsyncResult* res, void* data) {
std::unique_ptr<PromiseData> promise(PromiseData::from_ptr(data));
-
+ JSAutoRealm ac(promise->cx, gjs_get_import_global(promise->cx));
char* contents;
size_t length;
GError* error = nullptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]