[gjs/wip/js24] add missing AutoCompartment call
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/js24] add missing AutoCompartment call
- Date: Fri, 11 Oct 2013 06:24:23 +0000 (UTC)
commit d25cb07b33c130c667657c08a20c413f88aee6ba
Author: Tim Lunn <tim feathertop org>
Date: Tue Oct 8 14:09:01 2013 +1100
add missing AutoCompartment call
gjs/context.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 61556d3..4c20fba 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -1095,6 +1095,7 @@ gjs_context_define_string_array(GjsContext *js_context,
const char **array_values,
GError **error)
{
+ JSAutoCompartment ac(js_context->context, js_context->global);
if (!gjs_define_string_array(js_context->context,
js_context->global,
array_name, array_length, array_values,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]