diff options
author | portix <portix@gmx.net> | 2014-03-19 11:49:50 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-03-19 11:49:50 +0100 |
commit | afeb3ad70c196adc817aaa33f3db8a6bbd8aa646 (patch) | |
tree | 72f2c44186cadf8cfc3bac3a9d890034f4990bde | |
parent | be59940b5751e8cc1641b05b24aa49e6eb2e73b6 (diff) | |
download | dwb-afeb3ad70c196adc817aaa33f3db8a6bbd8aa646.zip |
Don't expose signals-object globally if not explicitly loaded.
-rw-r--r-- | src/scripts.c | 3 |
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); |