[gjs: 11/16] jsapi-util: Remove use of gjs_get_import_global()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 11/16] jsapi-util: Remove use of gjs_get_import_global()
- Date: Sat, 13 Oct 2018 21:27:55 +0000 (UTC)
commit d1e2bd2c4f525817a7d57ed884488b3b90d5de87
Author: Philip Chimento <philip chimento gmail com>
Date: Tue Sep 18 23:12:32 2018 -0700
jsapi-util: Remove use of gjs_get_import_global()
The GJS global object should not need to be used in the jsapi-util files.
Code calling functions in the jsapi-util files should already have
entered a compartment.
gjs/jsapi-util-error.cpp | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gjs/jsapi-util-error.cpp b/gjs/jsapi-util-error.cpp
index b5e651dc..42d14ae8 100644
--- a/gjs/jsapi-util-error.cpp
+++ b/gjs/jsapi-util-error.cpp
@@ -55,8 +55,6 @@ gjs_throw_valist(JSContext *context,
s = g_strdup_vprintf(format, args);
- JSAutoCompartment compartment(context, gjs_get_import_global(context));
-
JS_BeginRequest(context);
if (JS_IsExceptionPending(context)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]