summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scripts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 9aeb9ca5..5551167b 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -6826,7 +6826,8 @@ create_global_object()
cd.setProperty = signal_set;
class = JSClassCreate(&cd);
- s_ctx->namespaces[NAMESPACE_SIGNALS] = create_object(ctx, class, global_object, kJSDefaultAttributes, "signals", NULL);
+ s_ctx->namespaces[NAMESPACE_SIGNALS] = JSObjectMake(ctx, class, NULL);
+ JSValueProtect(ctx, s_ctx->namespaces[NAMESPACE_SIGNALS]);
JSClassRelease(class);
class = create_class("extensions", NULL, NULL, NULL);